diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index 78a1ae92..0be75832 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -20,6 +20,6 @@ dbt deps dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh dbt test --target "$db" -dbt run --vars '{netsuite2__multibook_accounting_enabled: false, netsuite2__using_exchange_rate: false, netsuite2__using_vendor_categories: false, netsuite2__using_jobs: false}' --target "$db" --full-refresh +dbt run --vars '{netsuite2__using_to_subsidiary: true, netsuite2__multibook_accounting_enabled: true, netsuite2__using_exchange_rate: false, netsuite2__using_vendor_categories: false, netsuite2__using_jobs: false}' --target "$db" --full-refresh dbt test --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md index 768ac3f4..fdc71e6c 100644 --- a/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md +++ b/.github/PULL_REQUEST_TEMPLATE/maintainer_pull_request_template.md @@ -4,48 +4,22 @@ **This PR will result in the following new package version:** -**Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:** +**Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:** + ## PR Checklist ### Basic Validation Please acknowledge that you have successfully performed the following commands locally: -- [ ] dbt compile -- [ ] dbt run –full-refresh -- [ ] dbt run -- [ ] dbt test -- [ ] dbt run –vars (if applicable) +- [ ] dbt run –full-refresh && dbt test +- [ ] dbt run (if incremental models are present) Before marking this PR as "ready for review" the following have been applied: -- [ ] The appropriate issue has been linked and tagged -- [ ] You are assigned to the corresponding issue and this PR +- [ ] The appropriate issue has been linked, tagged, and properly assigned +- [ ] All necessary documentation and version upgrades have been applied +- [ ] docs were regenerated (unless this PR does not include any code or yml updates) - [ ] BuildKite integration tests are passing +- [ ] Detailed validation steps have been provided below ### Detailed Validation -Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review": -- [ ] You have validated these changes and assure this PR will address the respective Issue/Feature. -- [ ] You are reasonably confident these changes will not impact any other components of this package or any dependent packages. -- [ ] You have provided details below around the validation steps performed to gain confidence in these changes. +Please share any and all of your validation steps: - -### Standard Updates -Please acknowledge that your PR contains the following standard updates: -- Package versioning has been appropriately indexed in the following locations: - - [ ] indexed within dbt_project.yml - - [ ] indexed within integration_tests/dbt_project.yml -- [ ] CHANGELOG has individual entries for each respective change in this PR - -- [ ] README updates have been applied (if applicable) - -- [ ] DECISIONLOG updates have been updated (if applicable) -- [ ] Appropriate yml documentation has been added (if applicable) - -### dbt Docs -Please acknowledge that after the above were all completed the below were applied to your branch: -- [ ] docs were regenerated (unless this PR does not include any code or yml updates) - -### If you had to summarize this PR in an emoji, which would it be? - -:dancer: diff --git a/CHANGELOG.md b/CHANGELOG.md index 212b13fc..cfe4811f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,81 @@ +# dbt_netsuite v0.12.0-b1 +## 📈 New Visualization Support (BigQuery & Snowflake users) 📊 +- Our team has created the [Netsuite Streamlit app](https://fivetran-netsuite.streamlit.app/) to help you visualize the end reports created in this package! [See instructions here](https://github.com/fivetran/streamlit_netsuite) on how to fork our Streamlit repo and configure your own reports. + +## Beta Release Notes for Netsuite2 + +[PR #95](https://github.com/fivetran/dbt_netsuite/pull/95) (built upon [#90](https://github.com/fivetran/dbt_netsuite/issues/90)) introduces the following updates. These changes are released in beta format to encourage community feedback and insights before the final release. +## 🚨 Breaking Changes 🚨 +- Multi-book functionality is now disabled by default. To enable it, set the variable `netsuite2__multibook_accounting_enabled` to `true` in your `dbt_project.yml`. + - ❗Note: The default behavior was updated due to addition of `accounting_book` fields. Depending on your Netsuite setup, **adding this field can significantly increase the row count of the end models**. + - See additional details in the multi-book section below. + +## 🎉 Features 🎉 +### Model updates +- For more accurate categorization of accounts, accounts having the following `special_account_type_id` are now categorized as: + +special_account_type_id | account_type_name | account_type_id +--- | --- | --- +retearnings | Retained Earnings | retained_earnings +cta-e | Cumulative Translation Adjustment | cumulative_translation_adjustment +cumultransadj | Cumulative Translation Adjustment | cumulative_translation_adjustment + +- The below fields have been added for all configurations. + - If you are leveraging a `*_pass_through_columns` variable to include `accounting_period_id` or `subsidiary_id`, you may need to remove them to avoid a duplicate column error. + +model | new cols +----- | ----- +netsuite2__transaction_details | accounting_period_id
subsidiary_id
transaction_details_id +netsuite2__income_statement | income_statement_id +netsuite2__balance_sheet | balance_sheet_id + +- `balance_sheet_id`, `income_statement_id`, and `transaction_details_id` are surrogate keys created for each end model. These keys are now tested for uniqueness and replaces the previous combination-of-columns tests for these models. + +- For detailed descriptions on the added columns, refer to our [dbt docs for this package](https://fivetran.github.io/dbt_netsuite/#!/overview/netsuite). + +### multi-book +- Expanded `accounting_book` information that is included. As mentioned above, this feature is now disabled by default. To enable it, set the below variable to `true` in your `dbt_project.yml`. + - ❗Notes: + - If you choose to enable this feature, this will add rows for transactions for your non-primary accounting_book_ids, and any of your downstream use cases may need to be adjusted. + - The surrogate keys mentioned above are dynamically generated depending on your enabled/disabled features, so adding these rows should not cause test failures. + - If you are leveraging a `*_pass_through_columns` variable to include the below columns, you may need to remove them to avoid a duplicate column error. +```yml +vars: + netsuite2__multibook_accounting_enabled: true # False by default. +``` +- The resulting fields added by enabling this feature are: + +model | new cols +----- | ----- +netsuite2__transaction_details | accounting_book_id
accounting_book_name +netsuite2__income_statement | accounting_book_id
accounting_book_name +netsuite2__balance_sheet | accounting_book_id
accounting_book_name + +### to_subsidiary +- Added the option to include `to_subsidiary` information in all end models. This feature is disabled by default, so to enable it, set the below variable to `true` in your `dbt_project.yml`. You will also need to be using exchange rates, which is enabled by default. + - ❗Notes: + - If you choose to enable this feature, this will add rows for transactions where `to_subsidiary` is not a top-level subsidiary. Your downstream use cases may need to be adjusted. + - The surrogate keys mentioned above are dynamically generated depending on your enabled/disabled features, so adding these rows should not cause test failures. + - If you are leveraging a `*_pass_through_columns` variable to include the below columns, you may need to remove them to avoid a duplicate column error. +```yml +vars: + netsuite2__using_to_subsidiary: true # False by default. +``` +- The resulting fields added by enabling this feature are: + +model | new cols +----- | ----- +netsuite2__transaction_details | to_subsidiary_id
to_subsidiary_name
to_subsidiary_currency_symbol +netsuite2__income_statement | to_subsidiary_id
to_subsidiary_name
to_subsidiary_currency_symbol +netsuite2__balance_sheet | to_subsidiary_id
to_subsidiary_name
to_subsidiary_currency_symbol
subsidiary_name + +## 🚘 Under the hood 🚘 +- Removed previously deprecated, empty model `int_netsuite2__consolidated_exchange_rates`. + +## Contributors: +- [@jmongerlyra](https://github.com/jmongerlyra) ([#90](https://github.com/fivetran/dbt_netsuite/issues/90)) +- [@rwang-lyra](https://github.com/rwang-lyra ) ([#90](https://github.com/fivetran/dbt_netsuite/issues/90)) + # dbt_netsuite v0.11.0 ## 🚨 Breaking Changes 🚨: diff --git a/README.md b/README.md index 6c48a832..e7effb3f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ The following table provides a detailed list of all models materialized within t | [netsuite__transaction_details](https://fivetran.github.io/dbt_netsuite/#!/model/model.netsuite.netsuite__transaction_details) or [netsuite2__transaction_details](https://fivetran.github.io/dbt_netsuite/#!/model/model.netsuite.netsuite2__transaction_details) | All transactions with the associated accounting period, account and subsidiary information. Where applicable, you can also see data about the customer, location, item, vendor, and department. | | [netsuite__income_statement](https://fivetran.github.io/dbt_netsuite/#!/model/model.netsuite.netsuite__income_statement) or [netsuite2__income_statement](https://fivetran.github.io/dbt_netsuite/#!/model/model.netsuite.netsuite2__income_statement) | All transaction lines necessary to generate an income statement (converted for the appropriate exchange rate of the parent subsidiary). Department, class, and location information are included for additional reporting functionality. | | [netsuite__balance_sheet](https://fivetran.github.io/dbt_netsuite/#!/model/model.netsuite.netsuite__balance_sheet) or [netsuite2__balance_sheet](https://fivetran.github.io/dbt_netsuite/#!/model/model.netsuite.netsuite2__balance_sheet) | All transaction lines necessary to generate a balance sheet (converted for the appropriate exchange rate of the parent subsidiary). Non balance sheet transactions are categorized as either Retained Earnings or Net Income. | + +Many of the above reports are now configurable for [visualization via Streamlit](https://github.com/fivetran/streamlit_netsuite)! Check out some [sample reports here](https://fivetran-netsuite.streamlit.app/). @@ -100,7 +102,7 @@ Include the following netsuite package version in your `packages.yml` file: ```yaml packages: - package: fivetran/netsuite - version: [">=0.11.0", "<0.12.0"] + version: [">=0.12.0", "<0.13.0"] ``` ## Step 3: Define Netsuite.com or Netsuite2 Source As of April 2022 Fivetran made available a new Netsuite connector which leverages the Netsuite2 endpoint opposed to the original Netsuite.com endpoint. This package is designed to run for either or, not both. By default the `netsuite_data_model` variable for this package is set to the original `netsuite` value which runs the netsuite.com version of the package. If you would like to run the package on Netsuite2 data, you may adjust the `netsuite_data_model` variable to run the `netsuite2` version of the package. @@ -122,7 +124,7 @@ vars: It's possible that your Netsuite connector does not sync every table that this package expects. If your syncs exclude certain tables, it is because you either don't use that feature in Netsuite or actively excluded some tables from your syncs. To disable the corresponding functionality in the package, you must add the relevant variables. By default, all variables are assumed to be true. Add variables for only the tables you would like to disable: ```yml vars: - netsuite2__multibook_accounting_enabled: false # True by default. Disable `accountingbooksubsidiary` and `accountingbook` if you are not using the Multi-Book Accounting feature + netsuite2__multibook_accounting_enabled: true # False by default. Disable `accountingbooksubsidiary` and `accountingbook` if you are not using the Multi-Book Accounting feature netsuite2__using_exchange_rate: false #True by default. Disable `exchange_rate` if you don't utilize exchange rates. If you set this variable to false, ensure it is scoped globally so that the `netsuite_source` package can access it as well. netsuite2__using_vendor_categories: false # True by default. Disable `vendorcategory` if you don't categorize your vendors netsuite2__using_jobs: false # True by default. Disable `job` if you don't use jobs @@ -132,7 +134,32 @@ vars: > To determine if a table or field is activated by a feature, access the [Records Catalog](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/article_159367781370.html). ## (Optional) Step 6: Additional configurations -
Expand for configurations + +### Enable additional features + +### Multi-Book (Netsuite2 only) +To include `accounting_book_id` and `accounting_book_name` columns in the end models, set the below variable to `true` in your `dbt_project.yml`. This feature is disabled by default. +>❗Notes: +> - If you choose to enable this feature, this will add rows for transactions for any non-primary `accounting_book_id`, and your downstream use cases may need to be adjusted. +> - The surrogate keys for the end models are dynamically generated depending on the enabled/disabled features, so adding these rows will not cause test failures. +> - If you are leveraging a `*_pass_through_columns` variable to include the added columns, you may need to remove them to avoid a duplicate column error. +```yml +vars: + netsuite2__multibook_accounting_enabled: true # False by default. +``` + +### To Subsidiary (Netsuite2 only) +To include `to_subsidiary_id` and `to_subsidiary_name` columns in the end models, set the below variable to `true` in your `dbt_project.yml`. This feature is disabled by default. You will also need to be using exchange rates, which is enabled by default. + +>❗Notes: +> - If you choose to enable this feature, this will add rows for transactions where `to_subsidiary` is not a top-level subsidiary. Your downstream use cases may need to be adjusted. +> - The surrogate keys for the end models are dynamically generated depending on the enabled/disabled features, so adding these rows will not cause test failures. +> - If you are leveraging a `*_pass_through_columns` variable to include the added columns, you may need to remove them to avoid a duplicate column error. + +```yml +vars: + netsuite2__using_to_subsidiary: true # False by default. +``` ### Passing Through Additional Fields This package includes all source columns defined in the macros folder. To add additional columns to this package, do so by adding our pass-through column variables to your `dbt_project.yml` file: @@ -206,9 +233,12 @@ vars: ### Override the data models variable This package is designed to run **either** the Netsuite.com or Netsuite2 data models. However, for documentation purposes, an additional variable `netsuite_data_model_override` was created to allow for both data model types to be run at the same time by setting the variable value to `netsuite`. This is only to ensure the [dbt docs](https://fivetran.github.io/dbt_netsuite/) (which is hosted on this repository) is generated for both model types. While this variable is provided, we recommend you do not adjust the variable and instead change the `netsuite_data_model` variable to fit your configuration needs. -
+## (Optional) Step 7: Produce Analytics-Ready Reports with Streamlit App (Bigquery and Snowflake users only) +For those who want to take their reports a step further, our team has created the [Fivetran Netsuite Streamlit App](https://fivetran-netsuite.streamlit.app/) to generate end model visualizations based off of the reports we created in this package. This way you can replicate much of the reporting you see internally in Netsuite and automate a lot of the work needed to report on your core metrics. + +[We recommend following the instructions here](https://github.com/fivetran/streamlit_netsuite) to fork the app for your own data and create end reports leveraging our Netsuite models. You can see a sample version of [these reports here]((https://fivetran-netsuite.streamlit.app/)). -## (Optional) Step 7: Orchestrate your models with Fivetran Transformations for dbt Core™ +## (Optional) Step 8: Orchestrate your models with Fivetran Transformations for dbt Core™
Expand for details
@@ -223,7 +253,7 @@ This dbt package is dependent on the following dbt packages. Please be aware tha ```yml packages: - package: fivetran/netsuite_source - version: [">=0.7.0", "<0.8.0"] + version: [">=0.9.0", "<0.10.0"] - package: fivetran/fivetran_utils version: [">=0.4.0", "<0.5.0"] diff --git a/dbt_project.yml b/dbt_project.yml index 402780ee..61379e38 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'netsuite' -version: '0.11.0' +version: '0.12.0' require-dbt-version: [">=1.3.0", "<2.0.0"] models: diff --git a/docs/catalog.json b/docs/catalog.json index 42b9a60e..07bc3906 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.6.1", "generated_at": "2023-09-07T23:26:35.828524Z", "invocation_id": "550760fd-f240-450f-9565-76e16c46c159", "env": {}}, "nodes": {"seed.netsuite_integration_tests.netsuite2_account_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_account_data"}, "seed.netsuite_integration_tests.netsuite2_account_type_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_account_type_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_book_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_accounting_book_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_accounting_book_sub_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_period_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_accounting_period_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, "seed.netsuite_integration_tests.netsuite2_classification_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_classification_data"}, "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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}, "accountingbook": {"type": "integer", "index": 14, "name": "accountingbook", "comment": null}}, "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_integration_tests.netsuite2_consolidated_exchange_rate_data"}, "seed.netsuite_integration_tests.netsuite2_currency_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_currency_data"}, "seed.netsuite_integration_tests.netsuite2_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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": "timestamp without time zone", "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_integration_tests.netsuite2_customer_data"}, "seed.netsuite_integration_tests.netsuite2_department_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_department_data"}, "seed.netsuite_integration_tests.netsuite2_entities_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_entities_data"}, "seed.netsuite_integration_tests.netsuite2_entity_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_entity_address_data"}, "seed.netsuite_integration_tests.netsuite2_item_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_item_data"}, "seed.netsuite_integration_tests.netsuite2_job_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_job_data"}, "seed.netsuite_integration_tests.netsuite2_location_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_location_data"}, "seed.netsuite_integration_tests.netsuite2_location_main_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_location_main_address_data"}, "seed.netsuite_integration_tests.netsuite2_subsidiary_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_subsidiary_data"}, "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_tran_acct_line_data"}, "seed.netsuite_integration_tests.netsuite2_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_transaction_data"}, "seed.netsuite_integration_tests.netsuite2_transaction_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_transaction_line_data"}, "seed.netsuite_integration_tests.netsuite2_vendor_category_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_vendor_category_data"}, "seed.netsuite_integration_tests.netsuite2_vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite2_vendor_data"}, "seed.netsuite_integration_tests.netsuite_accounting_books_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_accounting_books_data"}, "seed.netsuite_integration_tests.netsuite_accounting_periods_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_accounting_periods_data"}, "seed.netsuite_integration_tests.netsuite_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_accounts_data"}, "seed.netsuite_integration_tests.netsuite_classes_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_classes_data"}, "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_consolidated_exchange_rates_data"}, "seed.netsuite_integration_tests.netsuite_currencies_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_currencies_data"}, "seed.netsuite_integration_tests.netsuite_customers_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_customers_data"}, "seed.netsuite_integration_tests.netsuite_departments_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_departments_data"}, "seed.netsuite_integration_tests.netsuite_expense_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_expense_accounts_data"}, "seed.netsuite_integration_tests.netsuite_income_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_income_accounts_data"}, "seed.netsuite_integration_tests.netsuite_items_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_items_data"}, "seed.netsuite_integration_tests.netsuite_locations_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_locations_data"}, "seed.netsuite_integration_tests.netsuite_subsidiaries_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_subsidiaries_data"}, "seed.netsuite_integration_tests.netsuite_transaction_lines_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_transaction_lines_data"}, "seed.netsuite_integration_tests.netsuite_transactions_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_transactions_data"}, "seed.netsuite_integration_tests.netsuite_vendor_types_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_vendor_types_data"}, "seed.netsuite_integration_tests.netsuite_vendors_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4", "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_integration_tests.netsuite_vendors_data"}, "model.netsuite.int_netsuite2__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_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}, "fiscal_calendar_id": {"type": "integer", "index": 16, "name": "fiscal_calendar_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.int_netsuite2__accounting_periods"}, "model.netsuite.int_netsuite2__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_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}, "type_name": {"type": "text", "index": 20, "name": "type_name", "comment": null}, "is_balancesheet": {"type": "boolean", "index": 21, "name": "is_balancesheet", "comment": null}, "is_leftside": {"type": "boolean", "index": 22, "name": "is_leftside", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite2__accounts"}, "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__acctxperiod_exchange_rate_map", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 2, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 3, "name": "to_subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_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.int_netsuite2__acctxperiod_exchange_rate_map"}, "model.netsuite.int_netsuite2__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_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}, "city": {"type": "text", "index": 16, "name": "city", "comment": null}, "state": {"type": "text", "index": 17, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 18, "name": "zipcode", "comment": null}, "country": {"type": "text", "index": 19, "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.int_netsuite2__customers"}, "model.netsuite.int_netsuite2__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_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}, "city": {"type": "integer", "index": 8, "name": "city", "comment": null}, "state": {"type": "integer", "index": 9, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 10, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 11, "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.int_netsuite2__locations"}, "model.netsuite.int_netsuite2__tran_and_reporting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__tran_and_reporting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 2, "name": "reporting_accounting_period_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.int_netsuite2__tran_and_reporting_periods"}, "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__tran_lines_w_accounting_period", "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}, "transaction_accounting_period_id": {"type": "integer", "index": 5, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 6, "name": "unconverted_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.int_netsuite2__tran_lines_w_accounting_period"}, "model.netsuite.int_netsuite2__tran_with_converted_amounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__tran_with_converted_amounts", "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}, "transaction_accounting_period_id": {"type": "integer", "index": 5, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 6, "name": "unconverted_amount", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 7, "name": "reporting_accounting_period_id", "comment": null}, "exchange_rate_reporting_period": {"type": "integer", "index": 8, "name": "exchange_rate_reporting_period", "comment": null}, "exchange_rate_transaction_period": {"type": "integer", "index": 9, "name": "exchange_rate_transaction_period", "comment": null}, "converted_amount_using_transaction_accounting_period": {"type": "integer", "index": 10, "name": "converted_amount_using_transaction_accounting_period", "comment": null}, "converted_amount_using_reporting_month": {"type": "integer", "index": 11, "name": "converted_amount_using_reporting_month", "comment": null}, "is_income_statement": {"type": "boolean", "index": 12, "name": "is_income_statement", "comment": null}, "account_category": {"type": "text", "index": 13, "name": "account_category", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite2__tran_with_converted_amounts"}, "model.netsuite.int_netsuite2__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_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}, "account_id": {"type": "integer", "index": 19, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 20, "name": "amount", "comment": null}, "credit_amount": {"type": "integer", "index": 21, "name": "credit_amount", "comment": null}, "debit_amount": {"type": "integer", "index": 22, "name": "debit_amount", "comment": null}, "paid_amount": {"type": "integer", "index": 23, "name": "paid_amount", "comment": null}, "unpaid_amount": {"type": "integer", "index": 24, "name": "unpaid_amount", "comment": null}, "is_posting": {"type": "boolean", "index": 25, "name": "is_posting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite2__transaction_lines"}, "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__accountxperiod_exchange_rate_map", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 2, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 3, "name": "to_subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_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.int_netsuite__accountxperiod_exchange_rate_map"}, "model.netsuite.int_netsuite__transaction_and_reporting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__transaction_and_reporting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 2, "name": "reporting_accounting_period_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.int_netsuite__transaction_and_reporting_periods"}, "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__transaction_lines_w_accounting_period", "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}, "transaction_accounting_period_id": {"type": "integer", "index": 5, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 6, "name": "unconverted_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.int_netsuite__transaction_lines_w_accounting_period"}, "model.netsuite.int_netsuite__transactions_with_converted_amounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__transactions_with_converted_amounts", "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}, "transaction_accounting_period_id": {"type": "integer", "index": 5, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 6, "name": "unconverted_amount", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 7, "name": "reporting_accounting_period_id", "comment": null}, "exchange_rate_reporting_period": {"type": "integer", "index": 8, "name": "exchange_rate_reporting_period", "comment": null}, "exchange_rate_transaction_period": {"type": "integer", "index": 9, "name": "exchange_rate_transaction_period", "comment": null}, "converted_amount_using_transaction_accounting_period": {"type": "integer", "index": 10, "name": "converted_amount_using_transaction_accounting_period", "comment": null}, "converted_amount_using_reporting_month": {"type": "integer", "index": 11, "name": "converted_amount_using_reporting_month", "comment": null}, "is_income_statement": {"type": "boolean", "index": 12, "name": "is_income_statement", "comment": null}, "account_category": {"type": "text", "index": 13, "name": "account_category", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite__transactions_with_converted_amounts"}, "model.netsuite.netsuite2__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite2__balance_sheet", "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}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 4, "name": "accounting_period_ending", "comment": null}, "accounting_period_name": {"type": "text", "index": 5, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 6, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 7, "name": "is_accounting_period_closed", "comment": null}, "account_category": {"type": "text", "index": 8, "name": "account_category", "comment": null}, "account_name": {"type": "text", "index": 9, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 10, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 11, "name": "account_id", "comment": null}, "account_number": {"type": "integer", "index": 12, "name": "account_number", "comment": null}, "converted_amount": {"type": "integer", "index": 13, "name": "converted_amount", "comment": null}, "balance_sheet_sort_helper": {"type": "integer", "index": 14, "name": "balance_sheet_sort_helper", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.netsuite2__balance_sheet"}, "model.netsuite.netsuite2__income_statement": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite2__income_statement", "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}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 4, "name": "accounting_period_ending", "comment": null}, "accounting_period_name": {"type": "text", "index": 5, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 6, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 7, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 8, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 9, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 10, "name": "account_id", "comment": null}, "account_number": {"type": "integer", "index": 11, "name": "account_number", "comment": null}, "subsidiary_id": {"type": "integer", "index": 12, "name": "subsidiary_id", "comment": null}, "subsidiary_full_name": {"type": "text", "index": 13, "name": "subsidiary_full_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 14, "name": "subsidiary_name", "comment": null}, "account_number_and_name": {"type": "text", "index": 15, "name": "account_number_and_name", "comment": null}, "class_full_name": {"type": "text", "index": 16, "name": "class_full_name", "comment": null}, "location_full_name": {"type": "text", "index": 17, "name": "location_full_name", "comment": null}, "department_full_name": {"type": "text", "index": 18, "name": "department_full_name", "comment": null}, "account_category": {"type": "text", "index": 19, "name": "account_category", "comment": null}, "income_statement_sort_helper": {"type": "integer", "index": 20, "name": "income_statement_sort_helper", "comment": null}, "converted_amount": {"type": "integer", "index": 21, "name": "converted_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.netsuite2__income_statement"}, "model.netsuite.netsuite2__transaction_details": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite2__transaction_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_line_id": {"type": "integer", "index": 1, "name": "transaction_line_id", "comment": null}, "transaction_memo": {"type": "text", "index": 2, "name": "transaction_memo", "comment": null}, "is_transaction_non_posting": {"type": "boolean", "index": 3, "name": "is_transaction_non_posting", "comment": null}, "transaction_id": {"type": "integer", "index": 4, "name": "transaction_id", "comment": null}, "transaction_status": {"type": "text", "index": 5, "name": "transaction_status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "transaction_due_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_due_date", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "is_transaction_intercompany_adjustment": {"type": "boolean", "index": 9, "name": "is_transaction_intercompany_adjustment", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 10, "name": "accounting_period_ending", "comment": null}, "accounting_period_name": {"type": "text", "index": 11, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 12, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 13, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 14, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 15, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 16, "name": "account_id", "comment": null}, "account_number": {"type": "integer", "index": 17, "name": "account_number", "comment": null}, "is_account_leftside": {"type": "boolean", "index": 18, "name": "is_account_leftside", "comment": null}, "is_accounts_payable": {"type": "boolean", "index": 19, "name": "is_accounts_payable", "comment": null}, "is_accounts_receivable": {"type": "boolean", "index": 20, "name": "is_accounts_receivable", "comment": null}, "is_account_intercompany": {"type": "boolean", "index": 21, "name": "is_account_intercompany", "comment": null}, "parent_account_name": {"type": "text", "index": 22, "name": "parent_account_name", "comment": null}, "is_expense_account": {"type": "boolean", "index": 23, "name": "is_expense_account", "comment": null}, "is_income_account": {"type": "boolean", "index": 24, "name": "is_income_account", "comment": null}, "company_name": {"type": "text", "index": 25, "name": "company_name", "comment": null}, "customer_city": {"type": "text", "index": 26, "name": "customer_city", "comment": null}, "customer_state": {"type": "text", "index": 27, "name": "customer_state", "comment": null}, "customer_zipcode": {"type": "integer", "index": 28, "name": "customer_zipcode", "comment": null}, "customer_country": {"type": "text", "index": 29, "name": "customer_country", "comment": null}, "customer_date_first_order": {"type": "integer", "index": 30, "name": "customer_date_first_order", "comment": null}, "customer_external_id": {"type": "integer", "index": 31, "name": "customer_external_id", "comment": null}, "class_full_name": {"type": "text", "index": 32, "name": "class_full_name", "comment": null}, "item_name": {"type": "text", "index": 33, "name": "item_name", "comment": null}, "item_type_name": {"type": "text", "index": 34, "name": "item_type_name", "comment": null}, "sales_description": {"type": "text", "index": 35, "name": "sales_description", "comment": null}, "location_name": {"type": "text", "index": 36, "name": "location_name", "comment": null}, "location_city": {"type": "integer", "index": 37, "name": "location_city", "comment": null}, "location_country": {"type": "integer", "index": 38, "name": "location_country", "comment": null}, "vendor_category_name": {"type": "text", "index": 39, "name": "vendor_category_name", "comment": null}, "vendor_name": {"type": "integer", "index": 40, "name": "vendor_name", "comment": null}, "vendor_create_date": {"type": "timestamp without time zone", "index": 41, "name": "vendor_create_date", "comment": null}, "currency_name": {"type": "text", "index": 42, "name": "currency_name", "comment": null}, "currency_symbol": {"type": "text", "index": 43, "name": "currency_symbol", "comment": null}, "department_name": {"type": "text", "index": 44, "name": "department_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 45, "name": "subsidiary_name", "comment": null}, "converted_amount": {"type": "integer", "index": 46, "name": "converted_amount", "comment": null}, "transaction_amount": {"type": "integer", "index": 47, "name": "transaction_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.netsuite2__transaction_details"}, "model.netsuite.netsuite__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite__balance_sheet", "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}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 4, "name": "accounting_period_ending", "comment": null}, "accounting_period_full_name": {"type": "text", "index": 5, "name": "accounting_period_full_name", "comment": null}, "accounting_period_name": {"type": "text", "index": 6, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 7, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 8, "name": "is_accounting_period_closed", "comment": null}, "account_category": {"type": "text", "index": 9, "name": "account_category", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 11, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 13, "name": "account_number", "comment": null}, "converted_amount": {"type": "integer", "index": 14, "name": "converted_amount", "comment": null}, "balance_sheet_sort_helper": {"type": "integer", "index": 15, "name": "balance_sheet_sort_helper", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.netsuite__balance_sheet"}, "model.netsuite.netsuite__income_statement": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite__income_statement", "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}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 4, "name": "accounting_period_ending", "comment": null}, "accounting_period_full_name": {"type": "text", "index": 5, "name": "accounting_period_full_name", "comment": null}, "accounting_period_name": {"type": "text", "index": 6, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 7, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 8, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 9, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 10, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 11, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 12, "name": "account_number", "comment": null}, "subsidiary_id": {"type": "integer", "index": 13, "name": "subsidiary_id", "comment": null}, "subsidiary_full_name": {"type": "text", "index": 14, "name": "subsidiary_full_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 15, "name": "subsidiary_name", "comment": null}, "account_number_and_name": {"type": "text", "index": 16, "name": "account_number_and_name", "comment": null}, "class_full_name": {"type": "text", "index": 17, "name": "class_full_name", "comment": null}, "location_full_name": {"type": "text", "index": 18, "name": "location_full_name", "comment": null}, "department_full_name": {"type": "text", "index": 19, "name": "department_full_name", "comment": null}, "converted_amount": {"type": "integer", "index": 20, "name": "converted_amount", "comment": null}, "account_category": {"type": "text", "index": 21, "name": "account_category", "comment": null}, "income_statement_sort_helper": {"type": "integer", "index": 22, "name": "income_statement_sort_helper", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.netsuite__income_statement"}, "model.netsuite.netsuite__transaction_details": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite__transaction_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_line_id": {"type": "integer", "index": 1, "name": "transaction_line_id", "comment": null}, "transaction_memo": {"type": "text", "index": 2, "name": "transaction_memo", "comment": null}, "is_transaction_non_posting": {"type": "boolean", "index": 3, "name": "is_transaction_non_posting", "comment": null}, "transaction_id": {"type": "integer", "index": 4, "name": "transaction_id", "comment": null}, "transaction_status": {"type": "text", "index": 5, "name": "transaction_status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "transaction_due_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_due_date", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "is_transaction_intercompany": {"type": "boolean", "index": 9, "name": "is_transaction_intercompany", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 10, "name": "accounting_period_ending", "comment": null}, "accounting_period_full_name": {"type": "text", "index": 11, "name": "accounting_period_full_name", "comment": null}, "accounting_period_name": {"type": "text", "index": 12, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 13, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 14, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 15, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 16, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 17, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 18, "name": "account_number", "comment": null}, "is_account_leftside": {"type": "boolean", "index": 19, "name": "is_account_leftside", "comment": null}, "is_accounts_payable": {"type": "boolean", "index": 20, "name": "is_accounts_payable", "comment": null}, "is_accounts_receivable": {"type": "boolean", "index": 21, "name": "is_accounts_receivable", "comment": null}, "is_account_intercompany": {"type": "boolean", "index": 22, "name": "is_account_intercompany", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}, "is_income_account": {"type": "boolean", "index": 24, "name": "is_income_account", "comment": null}, "is_expense_account": {"type": "boolean", "index": 25, "name": "is_expense_account", "comment": null}, "company_name": {"type": "text", "index": 26, "name": "company_name", "comment": null}, "customer_city": {"type": "integer", "index": 27, "name": "customer_city", "comment": null}, "customer_state": {"type": "integer", "index": 28, "name": "customer_state", "comment": null}, "customer_zipcode": {"type": "integer", "index": 29, "name": "customer_zipcode", "comment": null}, "customer_country": {"type": "integer", "index": 30, "name": "customer_country", "comment": null}, "customer_date_first_order": {"type": "integer", "index": 31, "name": "customer_date_first_order", "comment": null}, "customer_external_id": {"type": "text", "index": 32, "name": "customer_external_id", "comment": null}, "class_full_name": {"type": "text", "index": 33, "name": "class_full_name", "comment": null}, "item_name": {"type": "text", "index": 34, "name": "item_name", "comment": null}, "item_type_name": {"type": "text", "index": 35, "name": "item_type_name", "comment": null}, "sales_description": {"type": "text", "index": 36, "name": "sales_description", "comment": null}, "location_name": {"type": "text", "index": 37, "name": "location_name", "comment": null}, "location_city": {"type": "text", "index": 38, "name": "location_city", "comment": null}, "location_country": {"type": "text", "index": 39, "name": "location_country", "comment": null}, "vendor_type_name": {"type": "text", "index": 40, "name": "vendor_type_name", "comment": null}, "vendor_name": {"type": "text", "index": 41, "name": "vendor_name", "comment": null}, "vendor_create_date": {"type": "timestamp without time zone", "index": 42, "name": "vendor_create_date", "comment": null}, "currency_name": {"type": "text", "index": 43, "name": "currency_name", "comment": null}, "currency_symbol": {"type": "text", "index": 44, "name": "currency_symbol", "comment": null}, "department_name": {"type": "text", "index": 45, "name": "department_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 46, "name": "subsidiary_name", "comment": null}, "converted_amount": {"type": "integer", "index": 47, "name": "converted_amount", "comment": null}, "transaction_amount": {"type": "integer", "index": 48, "name": "transaction_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.netsuite__transaction_details"}, "model.netsuite_source.stg_netsuite2__account_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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}, "accounting_book_id": {"type": "integer", "index": 7, "name": "accounting_book_id", "comment": null}, "current_rate": {"type": "integer", "index": 8, "name": "current_rate", "comment": null}, "average_rate": {"type": "integer", "index": 9, "name": "average_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 10, "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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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}, "accountingbook": {"type": "integer", "index": 14, "name": "accountingbook", "comment": null}}, "stats": {"has_stats": {"id": "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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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": "timestamp without time zone", "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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4_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": "BASE TABLE", "schema": "netsuite_integration_tests_4_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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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}, "accountingbook": {"type": "integer", "index": 14, "name": "accountingbook", "comment": null}}, "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_integration_tests_4", "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_integration_tests_4", "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": "timestamp without time zone", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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_integration_tests_4", "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} +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.6.6", "generated_at": "2023-11-09T21:06:39.399502Z", "invocation_id": "190dc263-6a28-4c01-81fb-76da7503a406", "env": {}}, "nodes": {"seed.netsuite_integration_tests.netsuite2_account_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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": "character varying", "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}, "eliminate_2": {"type": "text", "index": 36, "name": "eliminate_2", "comment": null}}, "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_integration_tests.netsuite2_account_data"}, "seed.netsuite_integration_tests.netsuite2_account_type_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_account_type_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_book_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_accounting_book_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_accounting_book_sub_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_period_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_accounting_period_data"}, "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, "seed.netsuite_integration_tests.netsuite2_classification_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_classification_data"}, "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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}, "accountingbook": {"type": "integer", "index": 14, "name": "accountingbook", "comment": null}}, "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_integration_tests.netsuite2_consolidated_exchange_rate_data"}, "seed.netsuite_integration_tests.netsuite2_currency_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_currency_data"}, "seed.netsuite_integration_tests.netsuite2_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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": "timestamp without time zone", "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_integration_tests.netsuite2_customer_data"}, "seed.netsuite_integration_tests.netsuite2_department_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_department_data"}, "seed.netsuite_integration_tests.netsuite2_entities_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_entities_data"}, "seed.netsuite_integration_tests.netsuite2_entity_address_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_entity_address_data"}, "seed.netsuite_integration_tests.netsuite2_item_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_item_data"}, "seed.netsuite_integration_tests.netsuite2_job_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_job_data"}, "seed.netsuite_integration_tests.netsuite2_location_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_location_data"}, "seed.netsuite_integration_tests.netsuite2_location_main_address_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_location_main_address_data"}, "seed.netsuite_integration_tests.netsuite2_subsidiary_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_subsidiary_data"}, "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_tran_acct_line_data"}, "seed.netsuite_integration_tests.netsuite2_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_transaction_data"}, "seed.netsuite_integration_tests.netsuite2_transaction_line_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_transaction_line_data"}, "seed.netsuite_integration_tests.netsuite2_vendor_category_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_vendor_category_data"}, "seed.netsuite_integration_tests.netsuite2_vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite2_vendor_data"}, "seed.netsuite_integration_tests.netsuite_accounting_books_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_accounting_books_data"}, "seed.netsuite_integration_tests.netsuite_accounting_periods_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_accounting_periods_data"}, "seed.netsuite_integration_tests.netsuite_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_accounts_data"}, "seed.netsuite_integration_tests.netsuite_classes_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_classes_data"}, "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_consolidated_exchange_rates_data"}, "seed.netsuite_integration_tests.netsuite_currencies_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_currencies_data"}, "seed.netsuite_integration_tests.netsuite_customers_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_customers_data"}, "seed.netsuite_integration_tests.netsuite_departments_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_departments_data"}, "seed.netsuite_integration_tests.netsuite_expense_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_expense_accounts_data"}, "seed.netsuite_integration_tests.netsuite_income_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_income_accounts_data"}, "seed.netsuite_integration_tests.netsuite_items_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_items_data"}, "seed.netsuite_integration_tests.netsuite_locations_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_locations_data"}, "seed.netsuite_integration_tests.netsuite_subsidiaries_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_subsidiaries_data"}, "seed.netsuite_integration_tests.netsuite_transaction_lines_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_transaction_lines_data"}, "seed.netsuite_integration_tests.netsuite_transactions_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_transactions_data"}, "seed.netsuite_integration_tests.netsuite_vendor_types_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_vendor_types_data"}, "seed.netsuite_integration_tests.netsuite_vendors_data": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2", "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_integration_tests.netsuite_vendors_data"}, "model.netsuite.int_netsuite2__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_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}, "fiscal_calendar_id": {"type": "integer", "index": 16, "name": "fiscal_calendar_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.int_netsuite2__accounting_periods"}, "model.netsuite.int_netsuite2__accounts": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_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}, "special_account_type_id": {"type": "text", "index": 7, "name": "special_account_type_id", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "account_description": {"type": "integer", "index": 9, "name": "account_description", "comment": null}, "deferral_account_id": {"type": "integer", "index": 10, "name": "deferral_account_id", "comment": null}, "cash_flow_rate_type": {"type": "text", "index": 11, "name": "cash_flow_rate_type", "comment": null}, "general_rate_type": {"type": "text", "index": 12, "name": "general_rate_type", "comment": null}, "currency_id": {"type": "integer", "index": 13, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "location_id": {"type": "integer", "index": 16, "name": "location_id", "comment": null}, "is_including_child_subs": {"type": "boolean", "index": 17, "name": "is_including_child_subs", "comment": null}, "is_inactive": {"type": "boolean", "index": 18, "name": "is_inactive", "comment": null}, "is_summary": {"type": "boolean", "index": 19, "name": "is_summary", "comment": null}, "is_eliminate": {"type": "boolean", "index": 20, "name": "is_eliminate", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 21, "name": "_fivetran_deleted", "comment": null}, "type_name": {"type": "text", "index": 22, "name": "type_name", "comment": null}, "is_balancesheet": {"type": "boolean", "index": 23, "name": "is_balancesheet", "comment": null}, "is_leftside": {"type": "boolean", "index": 24, "name": "is_leftside", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite2__accounts"}, "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__acctxperiod_exchange_rate_map", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 3, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 4, "name": "to_subsidiary_id", "comment": null}, "to_subsidiary_name": {"type": "text", "index": 5, "name": "to_subsidiary_name", "comment": null}, "to_subsidiary_currency_symbol": {"type": "text", "index": 6, "name": "to_subsidiary_currency_symbol", "comment": null}, "account_id": {"type": "integer", "index": 7, "name": "account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_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.int_netsuite2__acctxperiod_exchange_rate_map"}, "model.netsuite.int_netsuite2__customers": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_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}, "city": {"type": "text", "index": 16, "name": "city", "comment": null}, "state": {"type": "text", "index": 17, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 18, "name": "zipcode", "comment": null}, "country": {"type": "text", "index": 19, "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.int_netsuite2__customers"}, "model.netsuite.int_netsuite2__locations": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_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}, "city": {"type": "integer", "index": 8, "name": "city", "comment": null}, "state": {"type": "integer", "index": 9, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 10, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 11, "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.int_netsuite2__locations"}, "model.netsuite.int_netsuite2__tran_and_reporting_periods": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__tran_and_reporting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 2, "name": "reporting_accounting_period_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.int_netsuite2__tran_and_reporting_periods"}, "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__tran_lines_w_accounting_period", "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}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 6, "name": "accounting_book_name", "comment": null}, "transaction_accounting_period_id": {"type": "integer", "index": 7, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 8, "name": "unconverted_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.int_netsuite2__tran_lines_w_accounting_period"}, "model.netsuite.int_netsuite2__tran_with_converted_amounts": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__tran_with_converted_amounts", "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}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 6, "name": "accounting_book_name", "comment": null}, "transaction_accounting_period_id": {"type": "integer", "index": 7, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 8, "name": "unconverted_amount", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 9, "name": "reporting_accounting_period_id", "comment": null}, "exchange_rate_reporting_period": {"type": "integer", "index": 10, "name": "exchange_rate_reporting_period", "comment": null}, "exchange_rate_transaction_period": {"type": "integer", "index": 11, "name": "exchange_rate_transaction_period", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 12, "name": "to_subsidiary_id", "comment": null}, "to_subsidiary_name": {"type": "text", "index": 13, "name": "to_subsidiary_name", "comment": null}, "to_subsidiary_currency_symbol": {"type": "text", "index": 14, "name": "to_subsidiary_currency_symbol", "comment": null}, "converted_amount_using_transaction_accounting_period": {"type": "integer", "index": 15, "name": "converted_amount_using_transaction_accounting_period", "comment": null}, "converted_amount_using_reporting_month": {"type": "integer", "index": 16, "name": "converted_amount_using_reporting_month", "comment": null}, "is_income_statement": {"type": "boolean", "index": 17, "name": "is_income_statement", "comment": null}, "account_category": {"type": "text", "index": 18, "name": "account_category", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite2__tran_with_converted_amounts"}, "model.netsuite.int_netsuite2__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_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}, "account_id": {"type": "integer", "index": 19, "name": "account_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 20, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 21, "name": "accounting_book_name", "comment": null}, "amount": {"type": "integer", "index": 22, "name": "amount", "comment": null}, "credit_amount": {"type": "integer", "index": 23, "name": "credit_amount", "comment": null}, "debit_amount": {"type": "integer", "index": 24, "name": "debit_amount", "comment": null}, "paid_amount": {"type": "integer", "index": 25, "name": "paid_amount", "comment": null}, "unpaid_amount": {"type": "integer", "index": 26, "name": "unpaid_amount", "comment": null}, "is_posting": {"type": "boolean", "index": 27, "name": "is_posting", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite2__transaction_lines"}, "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__accountxperiod_exchange_rate_map", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 2, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 3, "name": "to_subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_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.int_netsuite__accountxperiod_exchange_rate_map"}, "model.netsuite.int_netsuite__transaction_and_reporting_periods": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__transaction_and_reporting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 2, "name": "reporting_accounting_period_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.int_netsuite__transaction_and_reporting_periods"}, "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__transaction_lines_w_accounting_period", "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}, "transaction_accounting_period_id": {"type": "integer", "index": 5, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 6, "name": "unconverted_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.int_netsuite__transaction_lines_w_accounting_period"}, "model.netsuite.int_netsuite__transactions_with_converted_amounts": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__transactions_with_converted_amounts", "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}, "transaction_accounting_period_id": {"type": "integer", "index": 5, "name": "transaction_accounting_period_id", "comment": null}, "unconverted_amount": {"type": "integer", "index": 6, "name": "unconverted_amount", "comment": null}, "reporting_accounting_period_id": {"type": "integer", "index": 7, "name": "reporting_accounting_period_id", "comment": null}, "exchange_rate_reporting_period": {"type": "integer", "index": 8, "name": "exchange_rate_reporting_period", "comment": null}, "exchange_rate_transaction_period": {"type": "integer", "index": 9, "name": "exchange_rate_transaction_period", "comment": null}, "converted_amount_using_transaction_accounting_period": {"type": "integer", "index": 10, "name": "converted_amount_using_transaction_accounting_period", "comment": null}, "converted_amount_using_reporting_month": {"type": "integer", "index": 11, "name": "converted_amount_using_reporting_month", "comment": null}, "is_income_statement": {"type": "boolean", "index": 12, "name": "is_income_statement", "comment": null}, "account_category": {"type": "text", "index": 13, "name": "account_category", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.int_netsuite__transactions_with_converted_amounts"}, "model.netsuite.netsuite2__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite2__balance_sheet", "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}, "subsidiary_name": {"type": "text", "index": 4, "name": "subsidiary_name", "comment": null}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 6, "name": "accounting_book_name", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 7, "name": "to_subsidiary_id", "comment": null}, "to_subsidiary_name": {"type": "text", "index": 8, "name": "to_subsidiary_name", "comment": null}, "to_subsidiary_currency_symbol": {"type": "text", "index": 9, "name": "to_subsidiary_currency_symbol", "comment": null}, "accounting_period_id": {"type": "integer", "index": 10, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 11, "name": "accounting_period_ending", "comment": null}, "accounting_period_name": {"type": "text", "index": 12, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 13, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 14, "name": "is_accounting_period_closed", "comment": null}, "account_category": {"type": "text", "index": 15, "name": "account_category", "comment": null}, "account_name": {"type": "text", "index": 16, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 17, "name": "account_type_name", "comment": null}, "account_type_id": {"type": "text", "index": 18, "name": "account_type_id", "comment": null}, "account_id": {"type": "integer", "index": 19, "name": "account_id", "comment": null}, "account_number": {"type": "integer", "index": 20, "name": "account_number", "comment": null}, "converted_amount": {"type": "integer", "index": 21, "name": "converted_amount", "comment": null}, "balance_sheet_sort_helper": {"type": "integer", "index": 22, "name": "balance_sheet_sort_helper", "comment": null}, "balance_sheet_id": {"type": "text", "index": 23, "name": "balance_sheet_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.netsuite2__balance_sheet"}, "model.netsuite.netsuite2__income_statement": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite2__income_statement", "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}, "accounting_book_id": {"type": "integer", "index": 3, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 4, "name": "accounting_book_name", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 5, "name": "to_subsidiary_id", "comment": null}, "to_subsidiary_name": {"type": "text", "index": 6, "name": "to_subsidiary_name", "comment": null}, "to_subsidiary_currency_symbol": {"type": "text", "index": 7, "name": "to_subsidiary_currency_symbol", "comment": null}, "accounting_period_id": {"type": "integer", "index": 8, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 9, "name": "accounting_period_ending", "comment": null}, "accounting_period_name": {"type": "text", "index": 10, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 11, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 12, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 13, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 14, "name": "account_type_name", "comment": null}, "account_type_id": {"type": "text", "index": 15, "name": "account_type_id", "comment": null}, "account_id": {"type": "integer", "index": 16, "name": "account_id", "comment": null}, "account_number": {"type": "integer", "index": 17, "name": "account_number", "comment": null}, "subsidiary_id": {"type": "integer", "index": 18, "name": "subsidiary_id", "comment": null}, "subsidiary_full_name": {"type": "text", "index": 19, "name": "subsidiary_full_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 20, "name": "subsidiary_name", "comment": null}, "account_number_and_name": {"type": "text", "index": 21, "name": "account_number_and_name", "comment": null}, "class_full_name": {"type": "text", "index": 22, "name": "class_full_name", "comment": null}, "location_full_name": {"type": "text", "index": 23, "name": "location_full_name", "comment": null}, "department_full_name": {"type": "text", "index": 24, "name": "department_full_name", "comment": null}, "account_category": {"type": "text", "index": 25, "name": "account_category", "comment": null}, "income_statement_sort_helper": {"type": "integer", "index": 26, "name": "income_statement_sort_helper", "comment": null}, "converted_amount": {"type": "integer", "index": 27, "name": "converted_amount", "comment": null}, "income_statement_id": {"type": "text", "index": 28, "name": "income_statement_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.netsuite2__income_statement"}, "model.netsuite.netsuite2__transaction_details": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite2__transaction_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 2, "name": "accounting_book_name", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 3, "name": "to_subsidiary_id", "comment": null}, "to_subsidiary_name": {"type": "text", "index": 4, "name": "to_subsidiary_name", "comment": null}, "to_subsidiary_currency_symbol": {"type": "text", "index": 5, "name": "to_subsidiary_currency_symbol", "comment": null}, "transaction_line_id": {"type": "integer", "index": 6, "name": "transaction_line_id", "comment": null}, "transaction_memo": {"type": "text", "index": 7, "name": "transaction_memo", "comment": null}, "is_transaction_non_posting": {"type": "boolean", "index": 8, "name": "is_transaction_non_posting", "comment": null}, "transaction_id": {"type": "integer", "index": 9, "name": "transaction_id", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 11, "name": "transaction_date", "comment": null}, "transaction_due_date": {"type": "timestamp without time zone", "index": 12, "name": "transaction_due_date", "comment": null}, "transaction_type": {"type": "text", "index": 13, "name": "transaction_type", "comment": null}, "is_transaction_intercompany_adjustment": {"type": "boolean", "index": 14, "name": "is_transaction_intercompany_adjustment", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 15, "name": "accounting_period_ending", "comment": null}, "accounting_period_name": {"type": "text", "index": 16, "name": "accounting_period_name", "comment": null}, "accounting_period_id": {"type": "integer", "index": 17, "name": "accounting_period_id", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 18, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 19, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 20, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 21, "name": "account_type_name", "comment": null}, "account_type_id": {"type": "text", "index": 22, "name": "account_type_id", "comment": null}, "account_id": {"type": "integer", "index": 23, "name": "account_id", "comment": null}, "account_number": {"type": "integer", "index": 24, "name": "account_number", "comment": null}, "is_account_leftside": {"type": "boolean", "index": 25, "name": "is_account_leftside", "comment": null}, "is_accounts_payable": {"type": "boolean", "index": 26, "name": "is_accounts_payable", "comment": null}, "is_accounts_receivable": {"type": "boolean", "index": 27, "name": "is_accounts_receivable", "comment": null}, "is_account_intercompany": {"type": "boolean", "index": 28, "name": "is_account_intercompany", "comment": null}, "parent_account_name": {"type": "text", "index": 29, "name": "parent_account_name", "comment": null}, "is_expense_account": {"type": "boolean", "index": 30, "name": "is_expense_account", "comment": null}, "is_income_account": {"type": "boolean", "index": 31, "name": "is_income_account", "comment": null}, "company_name": {"type": "text", "index": 32, "name": "company_name", "comment": null}, "customer_city": {"type": "text", "index": 33, "name": "customer_city", "comment": null}, "customer_state": {"type": "text", "index": 34, "name": "customer_state", "comment": null}, "customer_zipcode": {"type": "integer", "index": 35, "name": "customer_zipcode", "comment": null}, "customer_country": {"type": "text", "index": 36, "name": "customer_country", "comment": null}, "customer_date_first_order": {"type": "integer", "index": 37, "name": "customer_date_first_order", "comment": null}, "customer_external_id": {"type": "integer", "index": 38, "name": "customer_external_id", "comment": null}, "class_full_name": {"type": "text", "index": 39, "name": "class_full_name", "comment": null}, "item_name": {"type": "text", "index": 40, "name": "item_name", "comment": null}, "item_type_name": {"type": "text", "index": 41, "name": "item_type_name", "comment": null}, "sales_description": {"type": "text", "index": 42, "name": "sales_description", "comment": null}, "location_name": {"type": "text", "index": 43, "name": "location_name", "comment": null}, "location_city": {"type": "integer", "index": 44, "name": "location_city", "comment": null}, "location_country": {"type": "integer", "index": 45, "name": "location_country", "comment": null}, "vendor_category_name": {"type": "text", "index": 46, "name": "vendor_category_name", "comment": null}, "vendor_name": {"type": "integer", "index": 47, "name": "vendor_name", "comment": null}, "vendor_create_date": {"type": "timestamp without time zone", "index": 48, "name": "vendor_create_date", "comment": null}, "currency_name": {"type": "text", "index": 49, "name": "currency_name", "comment": null}, "currency_symbol": {"type": "text", "index": 50, "name": "currency_symbol", "comment": null}, "department_name": {"type": "text", "index": 51, "name": "department_name", "comment": null}, "subsidiary_id": {"type": "integer", "index": 52, "name": "subsidiary_id", "comment": null}, "subsidiary_name": {"type": "text", "index": 53, "name": "subsidiary_name", "comment": null}, "converted_amount": {"type": "integer", "index": 54, "name": "converted_amount", "comment": null}, "transaction_amount": {"type": "integer", "index": 55, "name": "transaction_amount", "comment": null}, "transaction_details_id": {"type": "text", "index": 56, "name": "transaction_details_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.netsuite2__transaction_details"}, "model.netsuite.netsuite__balance_sheet": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite__balance_sheet", "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}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 4, "name": "accounting_period_ending", "comment": null}, "accounting_period_full_name": {"type": "text", "index": 5, "name": "accounting_period_full_name", "comment": null}, "accounting_period_name": {"type": "text", "index": 6, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 7, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 8, "name": "is_accounting_period_closed", "comment": null}, "account_category": {"type": "text", "index": 9, "name": "account_category", "comment": null}, "account_name": {"type": "text", "index": 10, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 11, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 13, "name": "account_number", "comment": null}, "converted_amount": {"type": "integer", "index": 14, "name": "converted_amount", "comment": null}, "balance_sheet_sort_helper": {"type": "integer", "index": 15, "name": "balance_sheet_sort_helper", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.netsuite__balance_sheet"}, "model.netsuite.netsuite__income_statement": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite__income_statement", "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}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 4, "name": "accounting_period_ending", "comment": null}, "accounting_period_full_name": {"type": "text", "index": 5, "name": "accounting_period_full_name", "comment": null}, "accounting_period_name": {"type": "text", "index": 6, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 7, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 8, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 9, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 10, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 11, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 12, "name": "account_number", "comment": null}, "subsidiary_id": {"type": "integer", "index": 13, "name": "subsidiary_id", "comment": null}, "subsidiary_full_name": {"type": "text", "index": 14, "name": "subsidiary_full_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 15, "name": "subsidiary_name", "comment": null}, "account_number_and_name": {"type": "text", "index": 16, "name": "account_number_and_name", "comment": null}, "class_full_name": {"type": "text", "index": 17, "name": "class_full_name", "comment": null}, "location_full_name": {"type": "text", "index": 18, "name": "location_full_name", "comment": null}, "department_full_name": {"type": "text", "index": 19, "name": "department_full_name", "comment": null}, "converted_amount": {"type": "integer", "index": 20, "name": "converted_amount", "comment": null}, "account_category": {"type": "text", "index": 21, "name": "account_category", "comment": null}, "income_statement_sort_helper": {"type": "integer", "index": 22, "name": "income_statement_sort_helper", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite.netsuite__income_statement"}, "model.netsuite.netsuite__transaction_details": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite__transaction_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_line_id": {"type": "integer", "index": 1, "name": "transaction_line_id", "comment": null}, "transaction_memo": {"type": "text", "index": 2, "name": "transaction_memo", "comment": null}, "is_transaction_non_posting": {"type": "boolean", "index": 3, "name": "is_transaction_non_posting", "comment": null}, "transaction_id": {"type": "integer", "index": 4, "name": "transaction_id", "comment": null}, "transaction_status": {"type": "text", "index": 5, "name": "transaction_status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "transaction_due_date": {"type": "timestamp without time zone", "index": 7, "name": "transaction_due_date", "comment": null}, "transaction_type": {"type": "text", "index": 8, "name": "transaction_type", "comment": null}, "is_transaction_intercompany": {"type": "boolean", "index": 9, "name": "is_transaction_intercompany", "comment": null}, "accounting_period_ending": {"type": "timestamp without time zone", "index": 10, "name": "accounting_period_ending", "comment": null}, "accounting_period_full_name": {"type": "text", "index": 11, "name": "accounting_period_full_name", "comment": null}, "accounting_period_name": {"type": "text", "index": 12, "name": "accounting_period_name", "comment": null}, "is_accounting_period_adjustment": {"type": "boolean", "index": 13, "name": "is_accounting_period_adjustment", "comment": null}, "is_accounting_period_closed": {"type": "boolean", "index": 14, "name": "is_accounting_period_closed", "comment": null}, "account_name": {"type": "text", "index": 15, "name": "account_name", "comment": null}, "account_type_name": {"type": "text", "index": 16, "name": "account_type_name", "comment": null}, "account_id": {"type": "integer", "index": 17, "name": "account_id", "comment": null}, "account_number": {"type": "text", "index": 18, "name": "account_number", "comment": null}, "is_account_leftside": {"type": "boolean", "index": 19, "name": "is_account_leftside", "comment": null}, "is_accounts_payable": {"type": "boolean", "index": 20, "name": "is_accounts_payable", "comment": null}, "is_accounts_receivable": {"type": "boolean", "index": 21, "name": "is_accounts_receivable", "comment": null}, "is_account_intercompany": {"type": "boolean", "index": 22, "name": "is_account_intercompany", "comment": null}, "parent_account_name": {"type": "text", "index": 23, "name": "parent_account_name", "comment": null}, "is_income_account": {"type": "boolean", "index": 24, "name": "is_income_account", "comment": null}, "is_expense_account": {"type": "boolean", "index": 25, "name": "is_expense_account", "comment": null}, "company_name": {"type": "text", "index": 26, "name": "company_name", "comment": null}, "customer_city": {"type": "integer", "index": 27, "name": "customer_city", "comment": null}, "customer_state": {"type": "integer", "index": 28, "name": "customer_state", "comment": null}, "customer_zipcode": {"type": "integer", "index": 29, "name": "customer_zipcode", "comment": null}, "customer_country": {"type": "integer", "index": 30, "name": "customer_country", "comment": null}, "customer_date_first_order": {"type": "integer", "index": 31, "name": "customer_date_first_order", "comment": null}, "customer_external_id": {"type": "text", "index": 32, "name": "customer_external_id", "comment": null}, "class_full_name": {"type": "text", "index": 33, "name": "class_full_name", "comment": null}, "item_name": {"type": "text", "index": 34, "name": "item_name", "comment": null}, "item_type_name": {"type": "text", "index": 35, "name": "item_type_name", "comment": null}, "sales_description": {"type": "text", "index": 36, "name": "sales_description", "comment": null}, "location_name": {"type": "text", "index": 37, "name": "location_name", "comment": null}, "location_city": {"type": "text", "index": 38, "name": "location_city", "comment": null}, "location_country": {"type": "text", "index": 39, "name": "location_country", "comment": null}, "vendor_type_name": {"type": "text", "index": 40, "name": "vendor_type_name", "comment": null}, "vendor_name": {"type": "text", "index": 41, "name": "vendor_name", "comment": null}, "vendor_create_date": {"type": "timestamp without time zone", "index": 42, "name": "vendor_create_date", "comment": null}, "currency_name": {"type": "text", "index": 43, "name": "currency_name", "comment": null}, "currency_symbol": {"type": "text", "index": 44, "name": "currency_symbol", "comment": null}, "department_name": {"type": "text", "index": 45, "name": "department_name", "comment": null}, "subsidiary_name": {"type": "text", "index": 46, "name": "subsidiary_name", "comment": null}, "converted_amount": {"type": "integer", "index": 47, "name": "converted_amount", "comment": null}, "transaction_amount": {"type": "integer", "index": 48, "name": "transaction_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.netsuite__transaction_details"}, "model.netsuite_source.stg_netsuite2__account_types": {"metadata": {"type": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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}, "special_account_type_id": {"type": "text", "index": 7, "name": "special_account_type_id", "comment": null}, "name": {"type": "text", "index": 8, "name": "name", "comment": null}, "account_description": {"type": "integer", "index": 9, "name": "account_description", "comment": null}, "deferral_account_id": {"type": "integer", "index": 10, "name": "deferral_account_id", "comment": null}, "cash_flow_rate_type": {"type": "text", "index": 11, "name": "cash_flow_rate_type", "comment": null}, "general_rate_type": {"type": "text", "index": 12, "name": "general_rate_type", "comment": null}, "currency_id": {"type": "integer", "index": 13, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 15, "name": "department_id", "comment": null}, "location_id": {"type": "integer", "index": 16, "name": "location_id", "comment": null}, "is_including_child_subs": {"type": "boolean", "index": 17, "name": "is_including_child_subs", "comment": null}, "is_inactive": {"type": "boolean", "index": 18, "name": "is_inactive", "comment": null}, "is_summary": {"type": "boolean", "index": 19, "name": "is_summary", "comment": null}, "is_eliminate": {"type": "boolean", "index": 20, "name": "is_eliminate", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 21, "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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "character varying", "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}, "eliminate_2": {"type": "text", "index": 36, "name": "eliminate_2", "comment": null}}, "stats": {"has_stats": {"id": "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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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}, "accounting_book_id": {"type": "integer", "index": 7, "name": "accounting_book_id", "comment": null}, "current_rate": {"type": "integer", "index": 8, "name": "current_rate", "comment": null}, "average_rate": {"type": "integer", "index": 9, "name": "average_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 10, "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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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}, "accountingbook": {"type": "integer", "index": 14, "name": "accountingbook", "comment": null}}, "stats": {"has_stats": {"id": "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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "timestamp without time zone", "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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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}, "currency_id": {"type": "integer", "index": 11, "name": "currency_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2_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": "BASE TABLE", "schema": "zz_dbt_catherine_test_2_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": "zz_dbt_catherine_test_2", "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": "character varying", "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}, "eliminate_2": {"type": "text", "index": 36, "name": "eliminate_2", "comment": null}}, "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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}, "accountingbook": {"type": "integer", "index": 14, "name": "accountingbook", "comment": null}}, "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "timestamp without time zone", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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": "zz_dbt_catherine_test_2", "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 4ef24178..1069f96f 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v10.json", "dbt_version": "1.6.1", "generated_at": "2023-09-07T23:25:53.301200Z", "invocation_id": "550760fd-f240-450f-9565-76e16c46c159", "env": {}, "project_name": "netsuite_integration_tests", "project_id": "1288e68047c03dc418c42073e1469b09", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.netsuite_integration_tests.netsuite2_currency_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_currency_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_currency_data.csv", "original_file_path": "seeds/netsuite2_currency_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_currency_data", "fqn": ["netsuite_integration_tests", "netsuite2_currency_data"], "alias": "netsuite2_currency_data", "checksum": {"name": "sha256", "checksum": "860ccbec95ff9c17e8e40db2c32e28ab56f2ef18f6af775bc982fc5494aae23c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2548091, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_currency_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_vendors_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_vendors_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_vendors_data.csv", "original_file_path": "seeds/netsuite_vendors_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_vendors_data", "fqn": ["netsuite_integration_tests", "netsuite_vendors_data"], "alias": "netsuite_vendors_data", "checksum": {"name": "sha256", "checksum": "f050ea1d5fa346fcefbe9a5792dfbe9f5aabbec17a359ab2e497be7b3e888e2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.260946, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_vendors_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_classification_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_classification_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_classification_data.csv", "original_file_path": "seeds/netsuite2_classification_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_classification_data", "fqn": ["netsuite_integration_tests", "netsuite2_classification_data"], "alias": "netsuite2_classification_data", "checksum": {"name": "sha256", "checksum": "800dc93b65435dd17dbe1f668890a317bce221193a1ca52d6075c5ab8504e29c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.26217, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_classification_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_accounting_books_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_accounting_books_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_accounting_books_data.csv", "original_file_path": "seeds/netsuite_accounting_books_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_books_data", "fqn": ["netsuite_integration_tests", "netsuite_accounting_books_data"], "alias": "netsuite_accounting_books_data", "checksum": {"name": "sha256", "checksum": "45b73583ed0a1425f131de59b6a17b997caec17d9b0884947f27008ae81c1684"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2633212, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounting_books_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_entities_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_entities_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_entities_data.csv", "original_file_path": "seeds/netsuite2_entities_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_entities_data", "fqn": ["netsuite_integration_tests", "netsuite2_entities_data"], "alias": "netsuite2_entities_data", "checksum": {"name": "sha256", "checksum": "e28458219e88aecec3f237ff9c58941d13c0e40c478fec9e8727fbb3d9d244c8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.264458, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_entities_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_vendor_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_vendor_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_vendor_data.csv", "original_file_path": "seeds/netsuite2_vendor_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_data", "fqn": ["netsuite_integration_tests", "netsuite2_vendor_data"], "alias": "netsuite2_vendor_data", "checksum": {"name": "sha256", "checksum": "f1f8f8762dd6b7192e2273f12ee86f43eb06933a2055da91d37c82f0ddbec0b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.265975, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_vendor_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_consolidated_exchange_rates_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_consolidated_exchange_rates_data.csv", "original_file_path": "seeds/netsuite_consolidated_exchange_rates_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data", "fqn": ["netsuite_integration_tests", "netsuite_consolidated_exchange_rates_data"], "alias": "netsuite_consolidated_exchange_rates_data", "checksum": {"name": "sha256", "checksum": "b8719124e41745363f91f996b99812a9e6c98306ef24034c5efb12b64600a496"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.267259, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_consolidated_exchange_rates_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_customers_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_customers_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_customers_data.csv", "original_file_path": "seeds/netsuite_customers_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_customers_data", "fqn": ["netsuite_integration_tests", "netsuite_customers_data"], "alias": "netsuite_customers_data", "checksum": {"name": "sha256", "checksum": "e3ce06d6edaeb9f777c340a597d8de7cfb2d3423a20a2421eae4c86264a9c93a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.268456, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_customers_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_locations_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_locations_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_locations_data.csv", "original_file_path": "seeds/netsuite_locations_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_locations_data", "fqn": ["netsuite_integration_tests", "netsuite_locations_data"], "alias": "netsuite_locations_data", "checksum": {"name": "sha256", "checksum": "8a71a79adb44cc02707a75ee10a85f03b472324a894ddc32716eeea7d533bc2f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.269855, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_locations_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_transaction_line_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_transaction_line_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_transaction_line_data.csv", "original_file_path": "seeds/netsuite2_transaction_line_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_line_data", "fqn": ["netsuite_integration_tests", "netsuite2_transaction_line_data"], "alias": "netsuite2_transaction_line_data", "checksum": {"name": "sha256", "checksum": "746773ecc92c2e3e1113ebf7d00fd1a33723016cd3f221fca37fa938315ca5b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2710469, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_transaction_line_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_account_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_account_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_account_data.csv", "original_file_path": "seeds/netsuite2_account_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_account_data", "fqn": ["netsuite_integration_tests", "netsuite2_account_data"], "alias": "netsuite2_account_data", "checksum": {"name": "sha256", "checksum": "689909e17df06e2b189107699467b29cda77e8b4ab1d433c644872c481524747"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2721999, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_account_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_items_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_items_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_items_data.csv", "original_file_path": "seeds/netsuite_items_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_items_data", "fqn": ["netsuite_integration_tests", "netsuite_items_data"], "alias": "netsuite_items_data", "checksum": {"name": "sha256", "checksum": "567fc2b4c8e46962f9297095017fa529544feafed31503e9fc3ed51bf60b866d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2733881, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_items_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_subsidiary_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_subsidiary_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_subsidiary_data.csv", "original_file_path": "seeds/netsuite2_subsidiary_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_subsidiary_data", "fqn": ["netsuite_integration_tests", "netsuite2_subsidiary_data"], "alias": "netsuite2_subsidiary_data", "checksum": {"name": "sha256", "checksum": "ab5bdff19af5d7a5f923820106bd9aa7fc321d3a1b1397ab2ad33f8d1fce3991"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.27471, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_subsidiary_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_account_type_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_account_type_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_account_type_data.csv", "original_file_path": "seeds/netsuite2_account_type_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_account_type_data", "fqn": ["netsuite_integration_tests", "netsuite2_account_type_data"], "alias": "netsuite2_account_type_data", "checksum": {"name": "sha256", "checksum": "a25b940f65942b256bca8c5ac0c5d4f420a9b1e2d6330bd1102da3e8fa664c7f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.275845, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_account_type_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_period_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_accounting_period_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_period_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_period_data"], "alias": "netsuite2_accounting_period_data", "checksum": {"name": "sha256", "checksum": "97e406f50a1b4132adaef053a22a864d739a127589502896c47adbb034b8355e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2771058, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_period_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_accounting_period_fiscal_cal_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_period_fiscal_cal_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_fiscal_cal_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_period_fiscal_cal_data"], "alias": "netsuite2_accounting_period_fiscal_cal_data", "checksum": {"name": "sha256", "checksum": "ff3ab48ac65713c861da7a5542f14db75c64c4ad7ae4efc8acb2241c10b127c7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.278495, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_period_fiscal_cal_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_classes_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_classes_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_classes_data.csv", "original_file_path": "seeds/netsuite_classes_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_classes_data", "fqn": ["netsuite_integration_tests", "netsuite_classes_data"], "alias": "netsuite_classes_data", "checksum": {"name": "sha256", "checksum": "18e8a63665925edfacbeaa443c7f6632c4489bd521df77d945ee657d398588e3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.279616, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_classes_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_entity_address_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_entity_address_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_entity_address_data.csv", "original_file_path": "seeds/netsuite2_entity_address_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_entity_address_data", "fqn": ["netsuite_integration_tests", "netsuite2_entity_address_data"], "alias": "netsuite2_entity_address_data", "checksum": {"name": "sha256", "checksum": "194e01a215739408a796ec2d819da0bc650c860e052e2cddf6695c3faab3b059"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.280728, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_entity_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_departments_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_departments_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_departments_data.csv", "original_file_path": "seeds/netsuite_departments_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_departments_data", "fqn": ["netsuite_integration_tests", "netsuite_departments_data"], "alias": "netsuite_departments_data", "checksum": {"name": "sha256", "checksum": "9060203f11419c602daf8afc578035d29ef612e1e868b12fa22eaf7b37942607"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.281846, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_departments_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_customer_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_customer_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_customer_data.csv", "original_file_path": "seeds/netsuite2_customer_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_customer_data", "fqn": ["netsuite_integration_tests", "netsuite2_customer_data"], "alias": "netsuite2_customer_data", "checksum": {"name": "sha256", "checksum": "5500a2147bb74338ce1aa8bc059d0f3cae74cdfcf4d0d68b49121540b5ccb573"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.283083, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_customer_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_tran_acct_line_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_tran_acct_line_data.csv", "original_file_path": "seeds/netsuite2_tran_acct_line_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data", "fqn": ["netsuite_integration_tests", "netsuite2_tran_acct_line_data"], "alias": "netsuite2_tran_acct_line_data", "checksum": {"name": "sha256", "checksum": "c6e72ec64e0179be9c3f3fb6435a828570cd1cb9ba2092ce78b6a4900bc02ddb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2842271, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_tran_acct_line_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_department_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_department_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_department_data.csv", "original_file_path": "seeds/netsuite2_department_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_department_data", "fqn": ["netsuite_integration_tests", "netsuite2_department_data"], "alias": "netsuite2_department_data", "checksum": {"name": "sha256", "checksum": "6570dc2a4efbac97f87551588b34558d6c5c5b8e071b3cfea59bc9e13a0b7b4a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.285341, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_department_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_expense_accounts_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_expense_accounts_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_expense_accounts_data.csv", "original_file_path": "seeds/netsuite_expense_accounts_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_expense_accounts_data", "fqn": ["netsuite_integration_tests", "netsuite_expense_accounts_data"], "alias": "netsuite_expense_accounts_data", "checksum": {"name": "sha256", "checksum": "983ef804359afb2c0f7db8c3bb32d5eecdec8c0d9fbf502360944877dc212f9c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.287046, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_expense_accounts_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_currencies_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_currencies_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_currencies_data.csv", "original_file_path": "seeds/netsuite_currencies_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_currencies_data", "fqn": ["netsuite_integration_tests", "netsuite_currencies_data"], "alias": "netsuite_currencies_data", "checksum": {"name": "sha256", "checksum": "f98ba1751b715296956912fc4c2b43f58875c56740e829c045aefe1172cb2232"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2882261, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_currencies_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_accounting_book_sub_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_book_sub_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_sub_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_book_sub_data"], "alias": "netsuite2_accounting_book_sub_data", "checksum": {"name": "sha256", "checksum": "e95506b5ada820d0a9a79e7759d749a1512beaa8922c3d6e78c105f9029f7992"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.289333, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_book_sub_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_vendor_category_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_vendor_category_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_vendor_category_data.csv", "original_file_path": "seeds/netsuite2_vendor_category_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_category_data", "fqn": ["netsuite_integration_tests", "netsuite2_vendor_category_data"], "alias": "netsuite2_vendor_category_data", "checksum": {"name": "sha256", "checksum": "498453adb748d03d07147625b2ef67966f7200523eef6d824ce8787212159bf8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2916439, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_vendor_category_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_accounting_periods_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_accounting_periods_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_accounting_periods_data.csv", "original_file_path": "seeds/netsuite_accounting_periods_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_periods_data", "fqn": ["netsuite_integration_tests", "netsuite_accounting_periods_data"], "alias": "netsuite_accounting_periods_data", "checksum": {"name": "sha256", "checksum": "673c2f4c76e4cb8bbccecc7e30c0056163d39f53174013f0460a2e4e5efe6e33"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.292728, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounting_periods_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_subsidiaries_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_subsidiaries_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_subsidiaries_data.csv", "original_file_path": "seeds/netsuite_subsidiaries_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_subsidiaries_data", "fqn": ["netsuite_integration_tests", "netsuite_subsidiaries_data"], "alias": "netsuite_subsidiaries_data", "checksum": {"name": "sha256", "checksum": "4dd2e8b192c4c052a847d6791b5a32da6968a3234d48b85a37ae20f7ee9445de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2938502, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_subsidiaries_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_job_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_job_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_job_data.csv", "original_file_path": "seeds/netsuite2_job_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_job_data", "fqn": ["netsuite_integration_tests", "netsuite2_job_data"], "alias": "netsuite2_job_data", "checksum": {"name": "sha256", "checksum": "f1428503a8ec37e7e3013f3a6db96d4b6841ddec436575733475a07c583a5b65"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.295198, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_job_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_transaction_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_transaction_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_transaction_data.csv", "original_file_path": "seeds/netsuite2_transaction_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_data", "fqn": ["netsuite_integration_tests", "netsuite2_transaction_data"], "alias": "netsuite2_transaction_data", "checksum": {"name": "sha256", "checksum": "16b52e72a514adb263e4e26594326996ab0c1089e576155a4f429975b1d54db0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.2963321, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_transaction_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_location_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_location_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_location_data.csv", "original_file_path": "seeds/netsuite2_location_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_location_data", "fqn": ["netsuite_integration_tests", "netsuite2_location_data"], "alias": "netsuite2_location_data", "checksum": {"name": "sha256", "checksum": "a3ce64b239774b83f9226b8e1f8504147dd5f890a86ab80fda41c0376a6e2d19"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.297465, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_location_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_income_accounts_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_income_accounts_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_income_accounts_data.csv", "original_file_path": "seeds/netsuite_income_accounts_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_income_accounts_data", "fqn": ["netsuite_integration_tests", "netsuite_income_accounts_data"], "alias": "netsuite_income_accounts_data", "checksum": {"name": "sha256", "checksum": "53a81321736b4a42663e253050539eb48b0d179847e23f161927d29c4cbf1367"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.29858, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_income_accounts_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_consolidated_exchange_rate_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_consolidated_exchange_rate_data.csv", "original_file_path": "seeds/netsuite2_consolidated_exchange_rate_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data", "fqn": ["netsuite_integration_tests", "netsuite2_consolidated_exchange_rate_data"], "alias": "netsuite2_consolidated_exchange_rate_data", "checksum": {"name": "sha256", "checksum": "a9d4cb8df25e71cf9059317fe85779bee79f7cbf20b56474aea856f22e6911dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.300147, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_consolidated_exchange_rate_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_book_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_accounting_book_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_book_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_book_data"], "alias": "netsuite2_accounting_book_data", "checksum": {"name": "sha256", "checksum": "e5762b59dceb08e4a5170f2ff5413591cfca97f2a8a9a5080bf96860cf276566"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.3012989, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_book_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_location_main_address_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_location_main_address_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_location_main_address_data.csv", "original_file_path": "seeds/netsuite2_location_main_address_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_location_main_address_data", "fqn": ["netsuite_integration_tests", "netsuite2_location_main_address_data"], "alias": "netsuite2_location_main_address_data", "checksum": {"name": "sha256", "checksum": "605372cb4ea25cff3ec9f9c80374d24c71d6848ff3dbda939928851568a7311d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.302467, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_location_main_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_vendor_types_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_vendor_types_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_vendor_types_data.csv", "original_file_path": "seeds/netsuite_vendor_types_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_vendor_types_data", "fqn": ["netsuite_integration_tests", "netsuite_vendor_types_data"], "alias": "netsuite_vendor_types_data", "checksum": {"name": "sha256", "checksum": "2111fb5a226e9e73c187a1a1a13caa0c2d3b54bb2eedfe3287f636c049c72b64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.303759, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_vendor_types_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_item_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite2_item_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_item_data.csv", "original_file_path": "seeds/netsuite2_item_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_item_data", "fqn": ["netsuite_integration_tests", "netsuite2_item_data"], "alias": "netsuite2_item_data", "checksum": {"name": "sha256", "checksum": "73809b7847e14ec59fa08705c6ba1ee6be142717f9bcbe2dde9eeb5b1c14a65f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.304872, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_item_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_transactions_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_transactions_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_transactions_data.csv", "original_file_path": "seeds/netsuite_transactions_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_transactions_data", "fqn": ["netsuite_integration_tests", "netsuite_transactions_data"], "alias": "netsuite_transactions_data", "checksum": {"name": "sha256", "checksum": "c1d88d96de5d5e6ed310a6b008df7390a2aaf7b0d857668e0dfed259f0c704ed"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.3059871, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_transactions_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_transaction_lines_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_transaction_lines_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_transaction_lines_data.csv", "original_file_path": "seeds/netsuite_transaction_lines_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_transaction_lines_data", "fqn": ["netsuite_integration_tests", "netsuite_transaction_lines_data"], "alias": "netsuite_transaction_lines_data", "checksum": {"name": "sha256", "checksum": "6786bdf4b6e00d6243008c46d0bb69a21158ff27265690503aaa9d8b6faa01d2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694127478.3074932, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_transaction_lines_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "model.netsuite_source.stg_netsuite2__transactions": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__transactions", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__transactions.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transactions.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transactions", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transactions"], "alias": "stg_netsuite2__transactions", "checksum": {"name": "sha256", "checksum": "2c4c633021a63c8a1308b3789d56b708af5b5717e884351c71887231e0c90bcc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_number": {"name": "transaction_number", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the transaction is a posting event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_intercompany_adjustment": {"name": "is_intercompany_adjustment", "description": "Boolean indicating if the transaction is an intercompany adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_reversal": {"name": "is_reversal", "description": "Boolean indicating if the transaction is a reversal entry.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.319734, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__transactions_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__transactions_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transactions.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__jobs": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__jobs", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__jobs.sql", "original_file_path": "models/netsuite2/stg_netsuite2__jobs.sql", "unique_id": "model.netsuite_source.stg_netsuite2__jobs", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__jobs"], "alias": "stg_netsuite2__jobs", "checksum": {"name": "sha256", "checksum": "5413726d3e8bd8107224099901c6962f85073cde02dd673e1ac74e8e9e24abf1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all jobs.", "columns": {"job_id": {"name": "job_id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_external_id": {"name": "job_external_id", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "Reference the the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Default billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.31459, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__jobs\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_jobs', true))) }}\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", "refs": [{"name": "stg_netsuite2__jobs_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__jobs_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_job_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__jobs.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendors": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__vendors", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__vendors.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendors.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendors", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendors"], "alias": "stg_netsuite2__vendors", "checksum": {"name": "sha256", "checksum": "57d89d251774cb5fc016b2e7e5b18dbcc0bdf0a0a444538ae0609a4288e1b52a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.320448, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_netsuite2__vendors_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__vendors_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_vendors_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendors.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__classes": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__classes", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__classes.sql", "original_file_path": "models/netsuite2/stg_netsuite2__classes.sql", "unique_id": "model.netsuite_source.stg_netsuite2__classes", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__classes"], "alias": "stg_netsuite2__classes", "checksum": {"name": "sha256", "checksum": "a9e7992979bc1cd28fc5146856ab851659bc72d2395d23d2823c7becea767a15"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_external_id": {"name": "class_external_id", "description": "Reference to the external class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the class is active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.307002, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__classes_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__classes_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__classes.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__account_types": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__account_types", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__account_types.sql", "original_file_path": "models/netsuite2/stg_netsuite2__account_types.sql", "unique_id": "model.netsuite_source.stg_netsuite2__account_types", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__account_types"], "alias": "stg_netsuite2__account_types", "checksum": {"name": "sha256", "checksum": "6c39be806ec5db5f544422d953df9e56363bef7f19194b82cd34abe8c17f4bef"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Boolean indicating if the account type is a balance sheet account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Boolean indicating if the account type is leftside.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.301572, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__account_types_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__account_types_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_accounttype_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__account_types.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entities": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__entities", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__entities.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entities.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entities", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entities"], "alias": "stg_netsuite2__entities", "checksum": {"name": "sha256", "checksum": "0392c9e7b4655f0e6713bf4c704ad432ad31a64dc0cd576c25ce04587ab4cb6f"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_name": {"name": "entity_name", "description": "The entity name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating whether the entity is a person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_id": {"name": "job_id", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_type": {"name": "entity_type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.311531, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__entities_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__entities_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_entity_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entities_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entities.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_periods", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_periods.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_periods"], "alias": "stg_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "48e2a5453338c86df098bac458a583947b5e1975f270720c8cf1d5bdad319934"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_quarter": {"name": "is_quarter", "description": "Boolean indicating if the accounting period is the initial quarter.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_year": {"name": "is_year", "description": "Boolean indicating if the accounting period is the initial period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Boolean indicating if the accounting period is an adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the accounting period is posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_all_locked": {"name": "is_all_locked", "description": "Boolean indicating if all the accounting periods are locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_ar_locked": {"name": "is_ar_locked", "description": "Boolean indicating if the ar accounting period is locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_ap_locked": {"name": "is_ap_locked", "description": "Boolean indicating if the ap accounting period is locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.305117, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__accounting_periods_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_periods_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_periods.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_period_fiscal_cal"], "alias": "stg_netsuite2__accounting_period_fiscal_cal", "checksum": {"name": "sha256", "checksum": "08f29429258fe924b0103d832c5b2ee93ef0c822941114b0a5c3dda3b2b720c8"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.303778, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__customers": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__customers", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__customers.sql", "original_file_path": "models/netsuite2/stg_netsuite2__customers.sql", "unique_id": "model.netsuite_source.stg_netsuite2__customers", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__customers"], "alias": "stg_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "d6e64bbecd619e00c87215b8a34f976193ccf6ef747dcea102f8889d0abe1f36"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating if the customer is an individual person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Last name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Customers email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_billing_address_id": {"name": "default_billing_address_id", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_shipping_address_id": {"name": "default_shipping_address_id", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "receivables_account_id": {"name": "receivables_account_id", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.31016, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__customers_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__customers_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__customers.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_book_subsidiaries"], "alias": "stg_netsuite2__accounting_book_subsidiaries", "checksum": {"name": "sha256", "checksum": "0d2bfa2a3d3a82475bddf34cc2377c56d9c82fb8b0139105990b8667feabc976"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.302027, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounts", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounts"], "alias": "stg_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "72a4810637bdebf28bab5d48c9b9d2e7419cc5b87edb7f434c2f6833b68edb13"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_external_id": {"name": "account_external_id", "description": "Reference to the external account,", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Netsuite generate account number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Reference to the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_description": {"name": "account_description", "description": "Description of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferral_account_id": {"name": "deferral_account_id", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the account is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_summary": {"name": "is_summary", "description": "Boolean indicating if the account is a summary account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.3064818, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__transaction_lines", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_lines.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_lines"], "alias": "stg_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "9c9f517e165640453fdeebd65995df4ef52c492b4032bb08a85a0f793977065b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_number": {"name": "transaction_line_number", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the transaction line is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_billable": {"name": "is_billable", "description": "Boolean indicating if the transaction line is billable.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_cleared": {"name": "is_cleared", "description": "Boolean indicating if the transaction line is cleared.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.318698, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__transaction_lines_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__transaction_lines_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__subsidiaries", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__subsidiaries.sql", "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__subsidiaries"], "alias": "stg_netsuite2__subsidiaries", "checksum": {"name": "sha256", "checksum": "c7fed2bf88d1c9b46f20193416d4153d67a66488952b10d467cc8ebf1916021b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.315797, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__subsidiaries_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__subsidiaries.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entity_address": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__entity_address", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__entity_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entity_address.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entity_address", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entity_address"], "alias": "stg_netsuite2__entity_address", "checksum": {"name": "sha256", "checksum": "d27f51d927c47da86ddb71b2c791c8d099f62b1f344e7424b45da278eeab988a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.312573, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__entity_address_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__entity_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_entityaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entity_address_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entity_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__location_main_address": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__location_main_address", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__location_main_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__location_main_address.sql", "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__location_main_address"], "alias": "stg_netsuite2__location_main_address", "checksum": {"name": "sha256", "checksum": "6aa954c3810aabd58d6ebd5d3a40123da29a14afb1e2a4806204d7420af4073d"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.314949, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__location_main_address_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__location_main_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__location_main_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__vendor_categories", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__vendor_categories.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendor_categories.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendor_categories"], "alias": "stg_netsuite2__vendor_categories", "checksum": {"name": "sha256", "checksum": "649b796efa717393f18416d5291c9953e99558d811ae957eff8ca5c5bb387b95"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.320134, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__vendor_categories_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__vendor_categories_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_vendorcategory_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendor_categories.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__departments": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__departments", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__departments.sql", "original_file_path": "models/netsuite2/stg_netsuite2__departments.sql", "unique_id": "model.netsuite_source.stg_netsuite2__departments", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__departments"], "alias": "stg_netsuite2__departments", "checksum": {"name": "sha256", "checksum": "b39341b1d90d2d27d63e99103a0cb846b40e673accc25b41ffac244ce1d594d5"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the department is active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.3105228, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__departments_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__departments_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__departments.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_accounting_lines"], "alias": "stg_netsuite2__transaction_accounting_lines", "checksum": {"name": "sha256", "checksum": "90279461e66f275c5cec764afe306fbd000435ce5506dbd686082b0ae8897164"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "net_amount": {"name": "net_amount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the entry is posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "credit_amount": {"name": "credit_amount", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "debit_amount": {"name": "debit_amount", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_amount": {"name": "paid_amount", "description": "Total amount paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unpaid_amount": {"name": "unpaid_amount", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.3171918, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__transaction_accounting_lines_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__consolidated_exchange_rates"], "alias": "stg_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "26498ef3b73e8271b2ba0bb83db6a300ff9ece9db3c8b2726cd3a13455079dce"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "to_currency_id": {"name": "to_currency_id", "description": "The currency id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.307829, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_exchange_rate', true))) }}\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 accountingbook as accounting_book_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", "refs": [{"name": "stg_netsuite2__consolidated_exchange_rates_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__consolidated_exchange_rates_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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 accountingbook\n \n as \n \n accountingbook\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 accountingbook as accounting_book_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_books": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_books", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_books.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_books.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_books"], "alias": "stg_netsuite2__accounting_books", "checksum": {"name": "sha256", "checksum": "492c26cdf4e2287d7bf2860b161174c045cc4292eddfc2e5dc124c95ecd22f87"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_book_id": {"name": "base_book_id", "description": "Reference to the base book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_period_id": {"name": "effective_period_id", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_consolidated": {"name": "is_consolidated", "description": "Boolean indicating if the accounting book is a consolidated entry.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating if the accounting book is a primary entry.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.303461, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__accounting_books_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_books_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_books.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__items": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__items", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__items.sql", "original_file_path": "models/netsuite2/stg_netsuite2__items.sql", "unique_id": "model.netsuite_source.stg_netsuite2__items", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__items"], "alias": "stg_netsuite2__items", "checksum": {"name": "sha256", "checksum": "0b961f57671b5e65d221a49373c213636f2b29af46fbebf97c97b7b3681c40cc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "Item type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gain_loss_account_id": {"name": "gain_loss_account_id", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interco_expense_account_id": {"name": "interco_expense_account_id", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interco_income_account_id": {"name": "interco_income_account_id", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferred_expense_account_id": {"name": "deferred_expense_account_id", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferred_revenue_account_id": {"name": "deferred_revenue_account_id", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.313919, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_netsuite2__items_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__items_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_items_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__items_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__items.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__currencies": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__currencies", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__currencies.sql", "original_file_path": "models/netsuite2/stg_netsuite2__currencies.sql", "unique_id": "model.netsuite_source.stg_netsuite2__currencies", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__currencies"], "alias": "stg_netsuite2__currencies", "checksum": {"name": "sha256", "checksum": "9b9c0d0d1eb6893da99d35ceb10e45ee88de6f617e17e1b806954001368e7102"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.308144, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__currencies_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__currencies_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__currencies.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__locations": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__locations", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__locations.sql", "original_file_path": "models/netsuite2/stg_netsuite2__locations.sql", "unique_id": "model.netsuite_source.stg_netsuite2__locations", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__locations"], "alias": "stg_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "7119a0aab155a59c51c8cfe2acfdbe0936d7db06deacda06985c0cc94078c378"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.3154309, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite2__locations_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__locations_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__locations.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__subsidiaries_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__subsidiaries_tmp"], "alias": "stg_netsuite2__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "eb36dcfa2fc2c9804ee7c9f8a6d816e627a6a93317bf3c18b8fae79a401b5bc4"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.683871, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "subsidiary"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.subsidiary"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_subsidiary_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__transactions_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transactions_tmp"], "alias": "stg_netsuite2__transactions_tmp", "checksum": {"name": "sha256", "checksum": "0a53a3346ecc7bf2adf63219afd894ce3fcebbb6be17dd14b59e375ea8f17a08"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.687844, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "transaction"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__entity_address_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entity_address_tmp"], "alias": "stg_netsuite2__entity_address_tmp", "checksum": {"name": "sha256", "checksum": "d97182c6accf821ebe81e433983fa3d4c38276c248e3dc73dbbdd61bf81567ad"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.6912708, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "entity_address"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity_address"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_entity_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__account_types_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__account_types_tmp"], "alias": "stg_netsuite2__account_types_tmp", "checksum": {"name": "sha256", "checksum": "dac8de5c5ba05927d82e199a2740e5b79c242f09efad6d7fcd964b2de26b2167"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.694634, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "account_type"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account_type"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_account_type_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_periods_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_periods_tmp"], "alias": "stg_netsuite2__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "887a6933900a22d76b1b92d7193cb2baae1b34c60fab415815fe38a5ce1422a0"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.697943, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "accounting_period"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_period_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__jobs_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__jobs_tmp"], "alias": "stg_netsuite2__jobs_tmp", "checksum": {"name": "sha256", "checksum": "64ba1230db909c3a4ef51123afdfb7b0709becce49a2702ddc586d736b5aa68b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.701448, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__jobs_tmp\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_jobs', true))) }}\n\nselect * \nfrom {{ var('netsuite2_jobs') }}", "language": "sql", "refs": [], "sources": [["netsuite2", "job"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.job"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_job_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__transaction_lines_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_lines_tmp"], "alias": "stg_netsuite2__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "ea04f3ee54828be9da6e66a5381b4c7d8dc359754f456e5eba7a17683b67ce4d"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.705822, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "transaction_line"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_line"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_transaction_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounts_tmp"], "alias": "stg_netsuite2__accounts_tmp", "checksum": {"name": "sha256", "checksum": "ea42fb9c5028557e4a00ca8042ccf67c27ec141986f4098401358f816de4b62f"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.709149, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "account"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__customers_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__customers_tmp"], "alias": "stg_netsuite2__customers_tmp", "checksum": {"name": "sha256", "checksum": "e2db5f557cfe416e87f1b8fb38e2b62277871d2ed4c8b3f0ba83f35bcda6ecba"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.712522, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "customer"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.customer"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__entities_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entities_tmp"], "alias": "stg_netsuite2__entities_tmp", "checksum": {"name": "sha256", "checksum": "5b004f2a5981afaddb5fb502113db9a2d2165b9b56e93d02ba4658d8c425d907"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.715998, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "entity"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_entities_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__currencies_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__currencies_tmp"], "alias": "stg_netsuite2__currencies_tmp", "checksum": {"name": "sha256", "checksum": "51d0eb93cca09133a27b63198a2583f1095c42c021c00f482d383fe34dfb833e"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.719459, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "currency"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.currency"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_currency_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__vendors_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendors_tmp"], "alias": "stg_netsuite2__vendors_tmp", "checksum": {"name": "sha256", "checksum": "cacf810d2c734a69ed20fdaa94325dca269a2203d99190a49735e95e20210053"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.72367, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "vendor"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__items_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__items_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__items_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__items_tmp"], "alias": "stg_netsuite2__items_tmp", "checksum": {"name": "sha256", "checksum": "8df58ddce61531e56b3d5dcf4eb5638d4951c523e9a3a0ad345b16135136b943"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.72702, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "item"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.item"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_books_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_books_tmp"], "alias": "stg_netsuite2__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "91d2b7f601c4944aa633be46c7c738a6749660f661eb9a0d841dbea6ed895ac2"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.7304268, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "accounting_book"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_book_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_period_fiscal_cal_tmp"], "alias": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "checksum": {"name": "sha256", "checksum": "9b8ac7028346a715ad7ac74923f5478b4e9ed4963648f8eecc7d0e38c9e40c00"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.733883, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "accounting_period_fiscal_calendars"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_period_fiscal_cal_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__vendor_categories_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendor_categories_tmp"], "alias": "stg_netsuite2__vendor_categories_tmp", "checksum": {"name": "sha256", "checksum": "0d5cc385e0cacfd085258de54f4bd45cc1056400790f0ade2bf799fb4caa388b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.73718, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "vendor_category"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor_category"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_vendor_category_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_book_subsidiaries_tmp"], "alias": "stg_netsuite2__accounting_book_subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "55aa091abe1d3558287be256a80d7c2dce22c0894f2bd71528ba392c6298ab2c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.741583, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "accounting_book_subsidiaries"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_book_sub_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_accounting_lines_tmp"], "alias": "stg_netsuite2__transaction_accounting_lines_tmp", "checksum": {"name": "sha256", "checksum": "02cf897dc33a760cddf3c7b945d58668c4e9ab9ce804e418a076978b9b4c0391"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.7451992, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "transaction_accounting_line"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_accounting_line"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_tran_acct_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__location_main_address_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__location_main_address_tmp"], "alias": "stg_netsuite2__location_main_address_tmp", "checksum": {"name": "sha256", "checksum": "90884d135897c1fd0b2f8453ec78ed3c573096b856c331f9bb5a91863f5af6e3"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.748534, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "location_main_address"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location_main_address"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_location_main_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__locations_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__locations_tmp"], "alias": "stg_netsuite2__locations_tmp", "checksum": {"name": "sha256", "checksum": "b6a671c6c4a3a833cf0f4e9477d559b3e46d82f60eb09f316d232044dcaf142a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.751921, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "location"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__departments_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__departments_tmp"], "alias": "stg_netsuite2__departments_tmp", "checksum": {"name": "sha256", "checksum": "8cc13d2fbc4875e611c89c023a3f2619fa2c4e98c65ee23aa613aba9d70e1972"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.7553651, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "department"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.department"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__classes_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__classes_tmp"], "alias": "stg_netsuite2__classes_tmp", "checksum": {"name": "sha256", "checksum": "c5d7c66aef27878ade36b031c9e26b523c76373ac106b0f7b618a8e76f3518a2"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.758812, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite2", "classification"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.classification"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_classification_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__consolidated_exchange_rates_tmp"], "alias": "stg_netsuite2__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "2ffbe5553525e01ea5da9a18601d53d1839132753ea737a4836a5218a0e45f89"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127478.763309, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_exchange_rate', true))) }}\n\nselect *\nfrom {{ var('netsuite2_consolidated_exchange_rates') }}", "language": "sql", "refs": [], "sources": [["netsuite2", "consolidated_exchange_rate"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_consolidated_exchange_rate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transactions": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__transactions", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__transactions.sql", "original_file_path": "models/netsuite/stg_netsuite__transactions.sql", "unique_id": "model.netsuite_source.stg_netsuite__transactions", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transactions"], "alias": "stg_netsuite__transactions", "checksum": {"name": "sha256", "checksum": "2d0d8f63cabe0e4e3249fcc6c10223012174fd926c27997b6f42596e735e83c7"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.25514, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__transactions_tmp", "package": null, "version": null}, {"name": "stg_netsuite__transactions_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transactions.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__customers": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__customers", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__customers.sql", "original_file_path": "models/netsuite/stg_netsuite__customers.sql", "unique_id": "model.netsuite_source.stg_netsuite__customers", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__customers"], "alias": "stg_netsuite__customers", "checksum": {"name": "sha256", "checksum": "94a4530d0d8849486bf29953bd13306b98753b43d393792c18af36d85f735ddc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.24959, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__customers_tmp", "package": null, "version": null}, {"name": "stg_netsuite__customers_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__customers.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_books": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__accounting_books", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__accounting_books.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_books.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_books", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_books"], "alias": "stg_netsuite__accounting_books", "checksum": {"name": "sha256", "checksum": "ae0bb73ecb655686109d40fc0ac15ea443cca8274418d8bda84da29a2996bef1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2424488, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__accounting_books_tmp", "package": null, "version": null}, {"name": "stg_netsuite__accounting_books_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_books.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__consolidated_exchange_rates"], "alias": "stg_netsuite__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "073d6cbdf97f937567acfcf51468060522576383080888e942957a32431e7362"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.247732, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__consolidated_exchange_rates_tmp", "package": null, "version": null}, {"name": "stg_netsuite__consolidated_exchange_rates_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transaction_lines": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__transaction_lines", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__transaction_lines.sql", "original_file_path": "models/netsuite/stg_netsuite__transaction_lines.sql", "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transaction_lines"], "alias": "stg_netsuite__transaction_lines", "checksum": {"name": "sha256", "checksum": "cc7f06abb723023815be762c7b003bfbdd7e154337216b993480fc7a62a05e21"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2535229, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__transaction_lines_tmp", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transaction_lines.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__income_accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__income_accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__income_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__income_accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite__income_accounts", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__income_accounts"], "alias": "stg_netsuite__income_accounts", "checksum": {"name": "sha256", "checksum": "99794235d5376b2078430446edf8000db0f943e3f5a2c370f6a27d0b8dbb289c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.250923, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__income_accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite__income_accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__income_accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__expense_accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__expense_accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__expense_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__expense_accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__expense_accounts"], "alias": "stg_netsuite__expense_accounts", "checksum": {"name": "sha256", "checksum": "4bb83b911e4a94c473c1a2a533af236e20f99cd68c6860afe633cc15f88e1bec"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2504919, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__expense_accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite__expense_accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__expense_accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendors": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__vendors", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__vendors.sql", "original_file_path": "models/netsuite/stg_netsuite__vendors.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendors", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendors"], "alias": "stg_netsuite__vendors", "checksum": {"name": "sha256", "checksum": "f2d5d38870a8a594552dc69a30ec24d43223b510c370b7b67c72684c61dfc919"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The vendor's company name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2560909, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__vendors_tmp", "package": null, "version": null}, {"name": "stg_netsuite__vendors_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendors.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__classes": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__classes", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__classes.sql", "original_file_path": "models/netsuite/stg_netsuite__classes.sql", "unique_id": "model.netsuite_source.stg_netsuite__classes", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__classes"], "alias": "stg_netsuite__classes", "checksum": {"name": "sha256", "checksum": "f9a61986b6dc700af3005927687bff5e51b4e23a842fe1bab744f8b3fa66640e"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2464929, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__classes_tmp", "package": null, "version": null}, {"name": "stg_netsuite__classes_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__classes.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__subsidiaries": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__subsidiaries", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__subsidiaries.sql", "original_file_path": "models/netsuite/stg_netsuite__subsidiaries.sql", "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__subsidiaries"], "alias": "stg_netsuite__subsidiaries", "checksum": {"name": "sha256", "checksum": "425b25b0d65b3b485279811fc9aefa3762ada18223182af8a05487246d79f69b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2523992, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__subsidiaries_tmp", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__subsidiaries.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounts", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounts"], "alias": "stg_netsuite__accounts", "checksum": {"name": "sha256", "checksum": "de5eca6f78afb3b13df43e5200c05f92b8845d4d385ff8c683b9293ec2597de0"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.2458482, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite__accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__items": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__items", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__items.sql", "original_file_path": "models/netsuite/stg_netsuite__items.sql", "unique_id": "model.netsuite_source.stg_netsuite__items", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__items"], "alias": "stg_netsuite__items", "checksum": {"name": "sha256", "checksum": "a2ec97c733737b45db5cf5f9547a0236714caa0c2bf87b5ff6f0b66043a051f1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "The items sales description.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.251457, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__items_tmp", "package": null, "version": null}, {"name": "stg_netsuite__items_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__items.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__locations": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__locations", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__locations.sql", "original_file_path": "models/netsuite/stg_netsuite__locations.sql", "unique_id": "model.netsuite_source.stg_netsuite__locations", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__locations"], "alias": "stg_netsuite__locations", "checksum": {"name": "sha256", "checksum": "2a509c978f3321f2402b0acac9d12431cd22bc89f454a2c13342d841a098ed04"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.251961, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__locations_tmp", "package": null, "version": null}, {"name": "stg_netsuite__locations_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__locations.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__departments": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__departments", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__departments.sql", "original_file_path": "models/netsuite/stg_netsuite__departments.sql", "unique_id": "model.netsuite_source.stg_netsuite__departments", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__departments"], "alias": "stg_netsuite__departments", "checksum": {"name": "sha256", "checksum": "9608858b5263ae2f27321660a5c3263108d2d1c0694489df85304eb2e52ef60a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.250072, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__departments_tmp", "package": null, "version": null}, {"name": "stg_netsuite__departments_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__departments.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__currencies": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__currencies", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__currencies.sql", "original_file_path": "models/netsuite/stg_netsuite__currencies.sql", "unique_id": "model.netsuite_source.stg_netsuite__currencies", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__currencies"], "alias": "stg_netsuite__currencies", "checksum": {"name": "sha256", "checksum": "d378dfc58b57bfdcf5c0ea223d94453aa8106da86b0c407bdee1eb97d3b58ead"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all currency information.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.248279, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__currencies_tmp", "package": null, "version": null}, {"name": "stg_netsuite__currencies_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__currencies_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__currencies.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendor_types": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__vendor_types", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__vendor_types.sql", "original_file_path": "models/netsuite/stg_netsuite__vendor_types.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendor_types", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendor_types"], "alias": "stg_netsuite__vendor_types", "checksum": {"name": "sha256", "checksum": "f255f39da54739e397ca04af6c23cc81cad3b36caf45499333136b087d49ccfc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.255531, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__vendor_types_tmp", "package": null, "version": null}, {"name": "stg_netsuite__vendor_types_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendor_types.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_periods": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__accounting_periods", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__accounting_periods.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_periods.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_periods"], "alias": "stg_netsuite__accounting_periods", "checksum": {"name": "sha256", "checksum": "6a1ee35f76c202840468ca01b756ed47bc5cd2688c93596082f753d618d12bfb"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.244437, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [{"name": "stg_netsuite__accounting_periods_tmp", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_periods.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__accounting_periods_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_periods_tmp"], "alias": "stg_netsuite__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "28a02fe910972f99c5e124875533c8132e6dd925bb56741e1a2d16b625b34282"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0067399, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "accounting_periods"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounting_periods_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__accounting_books_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_books_tmp"], "alias": "stg_netsuite__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "e35a446e4d34afd3571f0cc4396228ebd3191421498e9410203dbaba12d3148d"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0101151, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "accounting_books"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounting_books_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__customers_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__customers_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__customers_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__customers_tmp"], "alias": "stg_netsuite__customers_tmp", "checksum": {"name": "sha256", "checksum": "b106ac731d1d28a410f842652a322650c66767fb79fa9016fd0a61a50c440849"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.01345, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__customers_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_customers') }}", "language": "sql", "refs": [], "sources": [["netsuite", "customers"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.customers"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_customers_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__transaction_lines_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transaction_lines_tmp"], "alias": "stg_netsuite__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "a23c4106ac7323cf36868b8c50f6558ba5349d8049f7f62470fd6c8ed30878a9"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0166411, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "transaction_lines"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_transaction_lines_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__income_accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__income_accounts_tmp"], "alias": "stg_netsuite__income_accounts_tmp", "checksum": {"name": "sha256", "checksum": "fc866be13f2319563f6ac40b728cc5ace6ff712dd61317a1163122362af84151"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.019874, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "income_accounts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.income_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_income_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounts_tmp"], "alias": "stg_netsuite__accounts_tmp", "checksum": {"name": "sha256", "checksum": "aedbde1fbfd6de71af2956bcd4e009f2e2429bc5cf19c73c0202ae2d7cf36566"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.024169, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounts') }}", "language": "sql", "refs": [], "sources": [["netsuite", "accounts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__departments_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__departments_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__departments_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__departments_tmp"], "alias": "stg_netsuite__departments_tmp", "checksum": {"name": "sha256", "checksum": "d7c7d932ae5cea0c318328e18d4f339df64f4e96d3c49659939fc1248d4dc731"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0275662, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__departments_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_departments') }}", "language": "sql", "refs": [], "sources": [["netsuite", "departments"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.departments"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_departments_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__currencies_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__currencies_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__currencies_tmp"], "alias": "stg_netsuite__currencies_tmp", "checksum": {"name": "sha256", "checksum": "8bcd4e9b4aa8bc73034ed444f8fdd51615b7509a2067647e6dce7c936fc539fe"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.030807, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__currencies_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_currencies') }}", "language": "sql", "refs": [], "sources": [["netsuite", "currencies"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_currencies_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__vendor_types_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendor_types_tmp"], "alias": "stg_netsuite__vendor_types_tmp", "checksum": {"name": "sha256", "checksum": "8f92023db03b866f3ee01f854b13ca5d09b00ae3fa7369a6a0e37733eaee8642"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0342479, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "vendor_types"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendor_types"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_vendor_types_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__vendors_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendors_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendors_tmp"], "alias": "stg_netsuite__vendors_tmp", "checksum": {"name": "sha256", "checksum": "80bd4603d1be17019ba53fbc5f9ac54d75b0bc93d51d344086ceb95e8aae4170"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.037527, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__vendors_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendors') }}", "language": "sql", "refs": [], "sources": [["netsuite", "vendors"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_vendors_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__locations_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__locations_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__locations_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__locations_tmp"], "alias": "stg_netsuite__locations_tmp", "checksum": {"name": "sha256", "checksum": "fdbcf875105e4b84bc7f69ced43eb3795d48ef027d1e95ce5951cbeac5984bcc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0414279, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__locations_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_locations') }}", "language": "sql", "refs": [], "sources": [["netsuite", "locations"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.locations"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_locations_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__items_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__items_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__items_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__items_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__items_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__items_tmp"], "alias": "stg_netsuite__items_tmp", "checksum": {"name": "sha256", "checksum": "fd4089f0b68dc2f7f028b503c94f98992d14bfdc686dbb69ad519c0f8caa4131"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.070413, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__items_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_items') }}", "language": "sql", "refs": [], "sources": [["netsuite", "items"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.items"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__items_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_items_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__subsidiaries_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__subsidiaries_tmp"], "alias": "stg_netsuite__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "1e11f4a166e89ab4d3cdd94deddbac4f9d097d4189797c902eb17a9a702c52f1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0736902, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_subsidiaries') }}", "language": "sql", "refs": [], "sources": [["netsuite", "subsidiaries"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_subsidiaries_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__transactions_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__transactions_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transactions_tmp"], "alias": "stg_netsuite__transactions_tmp", "checksum": {"name": "sha256", "checksum": "ded77da504c1f11d573eef4af0d4b1f13c8465619f743b50eb73b5742f8394f9"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.076889, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transactions_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transactions') }}", "language": "sql", "refs": [], "sources": [["netsuite", "transactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_transactions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__consolidated_exchange_rates_tmp"], "alias": "stg_netsuite__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "f114303796042031529963cecee8c443b76900af00f3f9897fef51e958195097"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.080601, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "consolidated_exchange_rates"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_consolidated_exchange_rates_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__classes_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__classes_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__classes_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__classes_tmp"], "alias": "stg_netsuite__classes_tmp", "checksum": {"name": "sha256", "checksum": "05d0671ec3188229e60d596ed0e85a241546e7b1297cdf4aa11119d5e19aa1c9"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0841658, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__classes_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_classes') }}", "language": "sql", "refs": [], "sources": [["netsuite", "classes"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.classes"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_classes_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite_source", "name": "stg_netsuite__expense_accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__expense_accounts_tmp"], "alias": "stg_netsuite__expense_accounts_tmp", "checksum": {"name": "sha256", "checksum": "14815137bbf31baf6e7bee82022575b5dc85ac33baaae5d23a177c86c72f5961"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1694127479.0884, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_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", "refs": [], "sources": [["netsuite", "expense_accounts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.expense_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_integration_tests_4\".\"netsuite_expense_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite2__transaction_details": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite2__transaction_details", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/netsuite2__transaction_details.sql", "original_file_path": "models/netsuite2/netsuite2__transaction_details.sql", "unique_id": "model.netsuite.netsuite2__transaction_details", "fqn": ["netsuite", "netsuite2", "netsuite2__transaction_details"], "alias": "netsuite2__transaction_details", "checksum": {"name": "sha256", "checksum": "3494e6b11f30c245c9d9b2e57be09d776cca2f9bfdcd21c930d9f81165fbfacc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "This table uses Netsuite's core table, transaction_lines, and joins a handful of other tables to add more detail to those line items. For all transactions, you are able to see the associated accounting period, account and subsidiary. Where applicable, you can also see information about the customer, location, item, vendor, and department.\n", "columns": {"transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_memo": {"name": "transaction_memo", "description": "Memo associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_non_posting": {"name": "is_transaction_non_posting", "description": "Boolean field, indicating whether or not the transaction line is non-posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the transaction (Closed, Pending Billing, Billing, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transaction occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_due_date": {"name": "transaction_due_date", "description": "Timestamp of the date which the transaction is due.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Type identifier of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_intercompany_adjustment": {"name": "is_transaction_intercompany_adjustment", "description": "Boolean field, indicating whether or not the transaction is an intercompany transaction or an advanced intercompany transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Boolean field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Boolean field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_leftside": {"name": "is_account_leftside", "description": "Boolean field indicating whether or not the account is leftside.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_payable": {"name": "is_accounts_payable", "description": "Boolean field indicating whether or not the account type name includes 'accounts payable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_receivable": {"name": "is_accounts_receivable", "description": "Boolean field indicating whether or not the account type name includes 'accounts receivable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_intercompany": {"name": "is_account_intercompany", "description": "Boolean field indicating whether or not the account type name includes 'intercompany'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "Name of the parent account, if parent account relationship exists. Otherwise, the name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_income_account": {"name": "is_income_account", "description": "Boolean field indicating whether or not the account is an income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_expense_account": {"name": "is_expense_account", "description": "Boolean field indicating whether or not the account is an expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_city": {"name": "customer_city", "description": "City where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_state": {"name": "customer_state", "description": "State where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_zipcode": {"name": "customer_zipcode", "description": "Zip Code of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_country": {"name": "customer_country", "description": "Country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_date_first_order": {"name": "customer_date_first_order", "description": "Date customer placed first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_name": {"name": "item_name", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_type_name": {"name": "item_type_name", "description": "Type name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Description of the item for sales purposes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_name": {"name": "location_name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_city": {"name": "location_city", "description": "City used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_country": {"name": "location_country", "description": "Country used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_category_name": {"name": "vendor_category_name", "description": "Category name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_create_date": {"name": "vendor_create_date", "description": "Date vendor was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_name": {"name": "currency_name", "description": "Name of the currency used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_symbol": {"name": "currency_symbol", "description": "Symbol used to identify the currency type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_amount": {"name": "transaction_amount", "description": "Total amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.4486542, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__transaction_details\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite2__tran_with_converted_amounts')}}\n),\n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n),\n\naccounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ ref('int_netsuite2__transaction_lines') }}\n),\n\ntransactions as (\n select * \n from {{ var('netsuite2_transactions') }}\n),\n\ncustomers as (\n select * \n from {{ ref('int_netsuite2__customers') }}\n),\n\nitems as (\n select * \n from {{ var('netsuite2_items') }}\n),\n\nlocations as (\n select * \n from {{ ref('int_netsuite2__locations') }}\n),\n\nvendors as (\n select * \n from {{ var('netsuite2_vendors') }}\n),\n\n{% if var('netsuite2__using_vendor_categories', true) %}\nvendor_categories as (\n select * \n from {{ var('netsuite2_vendor_categories') }}\n),\n{% endif %}\n\ndepartments as (\n select * \n from {{ var('netsuite2_departments') }}\n),\n\ncurrencies as (\n select * \n from {{ var('netsuite2_currencies') }}\n),\n\nclasses as (\n select *\n from {{ var('netsuite2_classes') }}\n),\n\nentities as (\n select *\n from {{ var('netsuite2_entities') }}\n),\n\ntransaction_details as (\n select\n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n not transaction_lines.is_posting as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n transactions.is_intercompany_adjustment as is_transaction_intercompany_adjustment\n\n --The below script allows for transactions table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transactions_pass_through_columns', identifier='transactions') }}\n\n --The below script allows for transaction lines table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transaction_lines_pass_through_columns', identifier='transaction_lines') }},\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.name as accounting_period_name,\n accounting_periods.is_adjustment as is_accounting_period_adjustment,\n accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n accounts.is_leftside as is_account_leftside,\n lower(accounts.type_name) like 'accounts payable%' as is_accounts_payable,\n lower(accounts.type_name) like 'accounts receivable%' as is_accounts_receivable,\n lower(accounts.name) like '%intercompany%' as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n lower(accounts.type_name) like '%expense' as is_expense_account, -- includes deferred expense\n lower(accounts.type_name) like '%income' as is_income_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n {% if var('netsuite2__using_vendor_categories', true) %}\n vendor_categories.name as vendor_category_name,\n {% endif %}\n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n\n left join customers \n on customers.customer_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n\n {% if var('netsuite2__using_vendor_categories', true) %}\n left join vendor_categories \n on vendor_categories.vendor_category_id = vendors.vendor_category_id\n {% endif %}\n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n)\n\nselect *\nfrom transaction_details", "language": "sql", "refs": [{"name": "int_netsuite2__tran_with_converted_amounts", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}, {"name": "int_netsuite2__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite2__transactions", "package": null, "version": null}, {"name": "int_netsuite2__customers", "package": null, "version": null}, {"name": "stg_netsuite2__items", "package": null, "version": null}, {"name": "int_netsuite2__locations", "package": null, "version": null}, {"name": "stg_netsuite2__vendors", "package": null, "version": null}, {"name": "stg_netsuite2__vendor_categories", "package": null, "version": null}, {"name": "stg_netsuite2__departments", "package": null, "version": null}, {"name": "stg_netsuite2__currencies", "package": null, "version": null}, {"name": "stg_netsuite2__classes", "package": null, "version": null}, {"name": "stg_netsuite2__entities", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transactions", "model.netsuite.int_netsuite2__customers", "model.netsuite_source.stg_netsuite2__items", "model.netsuite.int_netsuite2__locations", "model.netsuite_source.stg_netsuite2__vendors", "model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__entities"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/netsuite2__transaction_details.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"\n),\n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounts\"\n),\n\naccounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__transaction_lines\"\n),\n\ntransactions as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transactions\"\n),\n\ncustomers as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__customers\"\n),\n\nitems as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__items\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__locations\"\n),\n\nvendors as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__vendors\"\n),\n\n\nvendor_categories as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__vendor_categories\"\n),\n\n\ndepartments as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__departments\"\n),\n\ncurrencies as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__currencies\"\n),\n\nclasses as (\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__classes\"\n),\n\nentities as (\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__entities\"\n),\n\ntransaction_details as (\n select\n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n not transaction_lines.is_posting as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n transactions.is_intercompany_adjustment as is_transaction_intercompany_adjustment\n\n --The below script allows for transactions table pass through columns.\n \n\n\n\n\n\n --The below script allows for transaction lines table pass through columns.\n \n\n\n\n,\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.name as accounting_period_name,\n accounting_periods.is_adjustment as is_accounting_period_adjustment,\n accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n accounts.is_leftside as is_account_leftside,\n lower(accounts.type_name) like 'accounts payable%' as is_accounts_payable,\n lower(accounts.type_name) like 'accounts receivable%' as is_accounts_receivable,\n lower(accounts.name) like '%intercompany%' as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n lower(accounts.type_name) like '%expense' as is_expense_account, -- includes deferred expense\n lower(accounts.type_name) like '%income' as is_income_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n \n vendor_categories.name as vendor_category_name,\n \n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n\n left join customers \n on customers.customer_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n\n \n left join vendor_categories \n on vendor_categories.vendor_category_id = vendors.vendor_category_id\n \n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n)\n\nselect *\nfrom transaction_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite2__income_statement": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite2__income_statement", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/netsuite2__income_statement.sql", "original_file_path": "models/netsuite2/netsuite2__income_statement.sql", "unique_id": "model.netsuite.netsuite2__income_statement", "fqn": ["netsuite", "netsuite2", "netsuite2__income_statement"], "alias": "netsuite2__income_statement", "checksum": {"name": "sha256", "checksum": "184f4e3f66ccce501c8f0ef345d287fdf99f38707c698cdd42a7c7e150bfb223"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The income statement query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the income statement. It also joins in class, department and location information for enhanced reporting. \n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Boolean field, indicating whether or not the selected accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Boolean field, indicating whether or not the selected accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number_and_name": {"name": "account_number_and_name", "description": "Concatenation of account number and account name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_full_name": {"name": "location_full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_full_name": {"name": "department_full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_statement_sort_helper": {"name": "income_statement_sort_helper", "description": "Helper column for sorting income statement records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_full_name": {"name": "subsidiary_full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.444136, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__income_statement\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ ref('int_netsuite2__tran_with_converted_amounts') }}\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n{% if var('income_statement_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite2__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ ref('int_netsuite2__transaction_lines') }}\n),\n\nclasses as (\n select * \n from {{ var('netsuite2_classes') }}\n),\n\nlocations as (\n select * \n from {{ var('netsuite2_locations') }}\n),\n\ndepartments as (\n select * \n from {{ var('netsuite2_departments') }}\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n {{ dbt.concat(['accounts.account_number',\"'-'\", 'accounts.name']) }} as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('classes_pass_through_columns', identifier='classes') }},\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.type_name) = 'income' then 1\n when lower(accounts.type_name) = 'cost of goods sold' then 2\n when lower(accounts.type_name) = 'expense' then 3\n when lower(accounts.type_name) = 'other income' then 4\n when lower(accounts.type_name) = 'other expense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') %}\n\n , transaction_details.{{ var('income_statement_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n , -converted_amount_using_transaction_accounting_period as converted_amount\n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n \n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n left join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') != []%}\n join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n)\n\nselect *\nfrom income_statement", "language": "sql", "refs": [{"name": "int_netsuite2__tran_with_converted_amounts", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}, {"name": "int_netsuite2__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite2__classes", "package": null, "version": null}, {"name": "stg_netsuite2__locations", "package": null, "version": null}, {"name": "stg_netsuite2__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt.concat"], "nodes": ["model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__departments"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/netsuite2__income_statement.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__transaction_lines\"\n),\n\nclasses as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__classes\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__locations\"\n),\n\ndepartments as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__departments\"\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n accounts.account_number || '-' || accounts.name as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.type_name) = 'income' then 1\n when lower(accounts.type_name) = 'cost of goods sold' then 2\n when lower(accounts.type_name) = 'expense' then 3\n when lower(accounts.type_name) = 'other income' then 4\n when lower(accounts.type_name) = 'other expense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n\n , -converted_amount_using_transaction_accounting_period as converted_amount\n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n \n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n left join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n)\n\nselect *\nfrom income_statement", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite2__balance_sheet": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite2__balance_sheet", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/netsuite2__balance_sheet.sql", "original_file_path": "models/netsuite2/netsuite2__balance_sheet.sql", "unique_id": "model.netsuite.netsuite2__balance_sheet", "fqn": ["netsuite", "netsuite2", "netsuite2__balance_sheet"], "alias": "netsuite2__balance_sheet", "checksum": {"name": "sha256", "checksum": "3aad7c8abdefb8e0fc40cd86ac525be5645218801789e00fe9a8876d5870412c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The balance sheet query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the balance sheet. Transactions that are not balance sheet transactions are categorized as either Retained Earnings or Net Income. The Cumulative Translation Adjustment total, which in most cases does not have transactions associated with it, is calculated manually in the second part of the query.\n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Boolean field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Boolean field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance_sheet_sort_helper": {"name": "balance_sheet_sort_helper", "description": "Helper column for sorting balance sheet records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.442752, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__balance_sheet\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite2__tran_with_converted_amounts')}}\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n{% if var('balance_sheet_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite2__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n), \n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n else accounts.type_name\n end as account_type_name,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_id\n end as account_id,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n case\n when not accounts.is_balancesheet and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when not accounts.is_balancesheet then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and not accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and not accounts.is_leftside then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and accounts.is_leftside then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n\n case\n when lower(accounts.type_name) = 'bank' then 1\n when lower(accounts.type_name) = 'accounts receivable' then 2\n when lower(accounts.type_name) = 'unbilled receivable' then 3\n when lower(accounts.type_name) = 'other current asset' then 4\n when lower(accounts.type_name) = 'fixed asset' then 5\n when lower(accounts.type_name) = 'other asset' then 6\n when lower(accounts.type_name) in ('deferred expense', 'prepaid expense') then 7\n when lower(accounts.type_name) = 'accounts payable' then 8\n when lower(accounts.type_name) = 'credit card' then 9\n when lower(accounts.type_name) = 'other current liability' then 10\n when lower(accounts.type_name) = 'long term liability' then 11\n when lower(accounts.type_name) = 'deferred revenue' then 12\n when lower(accounts.type_name) = 'equity' then 13\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 15\n when not accounts.is_balancesheet then 14\n else null\n end as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n \n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n null as account_id,\n null as account_number,\n\n {% if var('accounts_pass_through_columns') %}\n {% for field in var('accounts_pass_through_columns') %}\n null as {{ field.alias if field.alias else field.name }},\n {% endfor %}\n {% endif %}\n\n case\n when lower(account_category) = 'equity' or is_income_statement then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n\n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n)\n\nselect *\nfrom balance_sheet", "language": "sql", "refs": [{"name": "int_netsuite2__tran_with_converted_amounts", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/netsuite2__balance_sheet.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounting_periods\"\n), \n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n else accounts.type_name\n end as account_type_name,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_id\n end as account_id,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n case\n when not accounts.is_balancesheet and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when not accounts.is_balancesheet then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and not accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and not accounts.is_leftside then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and accounts.is_leftside then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n\n case\n when lower(accounts.type_name) = 'bank' then 1\n when lower(accounts.type_name) = 'accounts receivable' then 2\n when lower(accounts.type_name) = 'unbilled receivable' then 3\n when lower(accounts.type_name) = 'other current asset' then 4\n when lower(accounts.type_name) = 'fixed asset' then 5\n when lower(accounts.type_name) = 'other asset' then 6\n when lower(accounts.type_name) in ('deferred expense', 'prepaid expense') then 7\n when lower(accounts.type_name) = 'accounts payable' then 8\n when lower(accounts.type_name) = 'credit card' then 9\n when lower(accounts.type_name) = 'other current liability' then 10\n when lower(accounts.type_name) = 'long term liability' then 11\n when lower(accounts.type_name) = 'deferred revenue' then 12\n when lower(accounts.type_name) = 'equity' then 13\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 15\n when not accounts.is_balancesheet then 14\n else null\n end as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n null as account_id,\n null as account_number,\n\n \n\n case\n when lower(account_category) = 'equity' or is_income_statement then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n)\n\nselect *\nfrom balance_sheet", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__acctxperiod_exchange_rate_map", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql", "unique_id": "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__acctxperiod_exchange_rate_map"], "alias": "int_netsuite2__acctxperiod_exchange_rate_map", "checksum": {"name": "sha256", "checksum": "1375b7ff47768ee7d47a329756831dad4b5b3faacca8ef5e7fb64799d66be950"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 1/4) In order to accurately recreate the balance sheet and income statement, it is necessary to convert all transaction amounts into the parent subsidiary currency. The logic gets complicated because of balance sheet behavior. On the balance sheet, the conversion rate you use for a single transaction will differ by accounting period. For example, if a transaction took place in August, and you are generating balances for the December period, you will need to convert the August transaction using December's conversion rate.\nSo we created a mapping of all accounting periods and the respective exchange rates, by subsidiary, naming it period_exchange_rate_map.\nNext, we cross join the accounts table to the period_exchange_rate_map, generating a map of exchange rates, by account, accounting period, and subsidiary.\nNOTE: This is only applicable if you're using exchange rates. Consult the README on how to disable exchange rates using the `netsuite2__using_exchange_rate` in your dbt_project.yml.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.4404118, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__acctxperiod_exchange_rate_map\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_exchange_rate', true)) }}\n\nwith accounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n), \n\n{% if var('netsuite2__multibook_accounting_enabled', true) %}\naccounting_books as (\n select * \n from {{ var('netsuite2_accounting_books') }}\n),\n{% endif %}\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\nconsolidated_exchange_rates as (\n select *\n from {{ var('netsuite2_consolidated_exchange_rates') }}\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id\n from consolidated_exchange_rates\n\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constraint - only the primary subsidiary has no parent\n {% if var('netsuite2__multibook_accounting_enabled', true) %}\n and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where is_primary)\n {% endif %}\n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect *\nfrom accountxperiod_exchange_rate_map", "language": "sql", "refs": [{"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_books", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite2__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite.int_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounts\"\n), \n\n\naccounting_books as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_books\"\n),\n\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\nconsolidated_exchange_rates as (\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id\n from consolidated_exchange_rates\n\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constraint - only the primary subsidiary has no parent\n \n and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where is_primary)\n \n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect *\nfrom accountxperiod_exchange_rate_map", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__tran_with_converted_amounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__tran_with_converted_amounts", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql", "unique_id": "model.netsuite.int_netsuite2__tran_with_converted_amounts", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__tran_with_converted_amounts"], "alias": "int_netsuite2__tran_with_converted_amounts", "checksum": {"name": "sha256", "checksum": "08661cd33578c3e60ebd58933a85f1c89c80479de7e02686517b2e8736471516"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 4/4) Now that we have the exchange rates and the unconverted amounts, the next step is to calculate the converted total. Additionally, we add in a couple of extra fields that will help us in our final balance sheet and income statement queries.\n \nNote: This is only applicable if you're using exchange rates. See the README for instructions on how to disable exchange rates using the `netsuite2__using_exchange_rate` in your dbt_project.yml.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.441113, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transaction_lines_w_accounting_period as (\n select * \n from {{ ref('int_netsuite2__tran_lines_w_accounting_period') }}\n), \n\n{% if var('netsuite2__using_exchange_rate', true) %}\n accountxperiod_exchange_rate_map as (\n select * \n from {{ ref('int_netsuite2__acctxperiod_exchange_rate_map') }}\n ), \n{% endif %}\n\ntransaction_and_reporting_periods as (\n select * \n from {{ ref('int_netsuite2__tran_and_reporting_periods') }}\n), \n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id\n \n {% if var('netsuite2__using_exchange_rate', true) %}\n , exchange_reporting_period.exchange_rate as exchange_rate_reporting_period\n , exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n {% endif %}\n\n from transaction_lines_w_accounting_period\n\n left join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n {% if var('netsuite2__using_exchange_rate', true) %}\n left join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n left join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n {% endif %}\n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n {% if var('netsuite2__using_exchange_rate', true) %}\n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n {% else %}\n unconverted_amount as converted_amount_using_transaction_accounting_period,\n unconverted_amount as converted_amount_using_reporting_month,\n {% endif %}\n case\n when lower(accounts.type_name) in ('income','other income','expense','other expense','other income','cost of goods sold') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.type_name) in ('accounts receivable', 'bank', 'deferred expense', 'fixed asset', 'other asset', 'other current asset', 'unbilled receivable', 'prepaid expense') then 'Asset'\n when lower(accounts.type_name) in ('cost of goods sold', 'expense', 'other expense') then 'Expense'\n when lower(accounts.type_name) in ('income', 'other income') then 'Income'\n when lower(accounts.type_name) in ('accounts payable', 'credit card', 'deferred revenue', 'long term liability', 'other current liability') then 'Liability'\n when lower(accounts.type_name) in ('equity', 'retained earnings', 'net income') then 'Equity'\n when lower(accounts.type_name) in ('non posting', 'statistical') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts\n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "language": "sql", "refs": [{"name": "int_netsuite2__tran_lines_w_accounting_period", "package": null, "version": null}, {"name": "int_netsuite2__acctxperiod_exchange_rate_map", "package": null, "version": null}, {"name": "int_netsuite2__tran_and_reporting_periods", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.int_netsuite2__accounts"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql", "compiled": true, "compiled_code": "\n\nwith transaction_lines_w_accounting_period as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_lines_w_accounting_period\"\n), \n\n\n accountxperiod_exchange_rate_map as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__acctxperiod_exchange_rate_map\"\n ), \n\n\ntransaction_and_reporting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_and_reporting_periods\"\n), \n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounts\"\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id\n \n \n , exchange_reporting_period.exchange_rate as exchange_rate_reporting_period\n , exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n \n\n from transaction_lines_w_accounting_period\n\n left join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n \n left join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n left join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n \n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n \n case\n when lower(accounts.type_name) in ('income','other income','expense','other expense','other income','cost of goods sold') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.type_name) in ('accounts receivable', 'bank', 'deferred expense', 'fixed asset', 'other asset', 'other current asset', 'unbilled receivable', 'prepaid expense') then 'Asset'\n when lower(accounts.type_name) in ('cost of goods sold', 'expense', 'other expense') then 'Expense'\n when lower(accounts.type_name) in ('income', 'other income') then 'Income'\n when lower(accounts.type_name) in ('accounts payable', 'credit card', 'deferred revenue', 'long term liability', 'other current liability') then 'Liability'\n when lower(accounts.type_name) in ('equity', 'retained earnings', 'net income') then 'Equity'\n when lower(accounts.type_name) in ('non posting', 'statistical') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts\n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__tran_and_reporting_periods": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__tran_and_reporting_periods", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__tran_and_reporting_periods.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__tran_and_reporting_periods.sql", "unique_id": "model.netsuite.int_netsuite2__tran_and_reporting_periods", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__tran_and_reporting_periods"], "alias": "int_netsuite2__tran_and_reporting_periods", "checksum": {"name": "sha256", "checksum": "7a1ee209c4f85a9bd5e275e97105f885e7e766ce2effed5cc77b7dc9de6cbc02"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 3/4) Once we have the cleaned transaction_lines_w_accounting_periods, we now need to figure out which exchange rate we should use for the currency conversion. The balance sheet complicates things, as conversion rates vary based on the reporting period. Therefore, all transactions need to be converted not only for the period in which the transaction took place in, but also all subsequent periods. transaction_and_reporting_periods creates the necessary mapping for this.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.4409149, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_and_reporting_periods\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith accounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.is_quarter = base.is_quarter\n and multiplier.is_year = base.is_year -- this was year_0 in netsuite1\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as {{ dbt.type_timestamp() }}) <= {{ current_timestamp() }} \n\n where not base.is_quarter\n and not base.is_year\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "language": "sql", "refs": [{"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.current_timestamp"], "nodes": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__tran_and_reporting_periods.sql", "compiled": true, "compiled_code": "\n\nwith accounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.is_quarter = base.is_quarter\n and multiplier.is_year = base.is_year -- this was year_0 in netsuite1\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as TIMESTAMP) <= now() \n\n where not base.is_quarter\n and not base.is_year\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__tran_lines_w_accounting_period", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql", "unique_id": "model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__tran_lines_w_accounting_period"], "alias": "int_netsuite2__tran_lines_w_accounting_period", "checksum": {"name": "sha256", "checksum": "a22cdbe4967661f36e44dcffe1a18ebefd5b29bfa2f62d2a6f5068ba8b01ddb4"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 2/4) Next, we need to prepare a cleaned version of all transactions we need. Using the transactions and transaction_lines tables, the necessary fields are extracted, and transactions that are deleted, revenue arrangements, or non-posting transactions are filtered out. This is called transaction_lines_w_accounting_period. \n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.4407082, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__tran_lines_w_accounting_period\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions as (\n select * \n from {{ var('netsuite2_transactions') }}\n), \n\ntransaction_lines as (\n select * \n from {{ ref('int_netsuite2__transaction_lines') }}\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and transaction_lines.is_posting\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "language": "sql", "refs": [{"name": "stg_netsuite2__transactions", "package": null, "version": null}, {"name": "int_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__transactions", "model.netsuite.int_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transactions\"\n), \n\ntransaction_lines as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__transaction_lines\"\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and transaction_lines.is_posting\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__transaction_lines": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__transaction_lines", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql", "unique_id": "model.netsuite.int_netsuite2__transaction_lines", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__transaction_lines"], "alias": "int_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "80f268a6fc459fa03b3e951a3e6fa1c6b3506812536ae3c26a4240da5ef5a9cc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.156749, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__transaction_lines\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transaction_lines as (\n\n select *\n from {{ var('netsuite2_transaction_lines') }}\n),\n\ntransaction_accounting_lines as (\n\n select *\n from {{ var('netsuite2_transaction_accounting_lines') }}\n),\n\njoined as (\n\n select \n transaction_lines.*,\n transaction_accounting_lines.account_id,\n transaction_accounting_lines.amount,\n transaction_accounting_lines.credit_amount,\n transaction_accounting_lines.debit_amount,\n transaction_accounting_lines.paid_amount,\n transaction_accounting_lines.unpaid_amount,\n transaction_accounting_lines.is_posting\n\n from transaction_lines\n left join transaction_accounting_lines\n on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id\n and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql", "compiled": true, "compiled_code": "\n\nwith transaction_lines as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transaction_lines\"\n),\n\ntransaction_accounting_lines as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\n),\n\njoined as (\n\n select \n transaction_lines.*,\n transaction_accounting_lines.account_id,\n transaction_accounting_lines.amount,\n transaction_accounting_lines.credit_amount,\n transaction_accounting_lines.debit_amount,\n transaction_accounting_lines.paid_amount,\n transaction_accounting_lines.unpaid_amount,\n transaction_accounting_lines.is_posting\n\n from transaction_lines\n left join transaction_accounting_lines\n on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id\n and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__accounts", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__accounts.sql", "unique_id": "model.netsuite.int_netsuite2__accounts", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__accounts"], "alias": "int_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "c697178bc6cce5bca18af5dad48e06f10f0b6df9efcb843497ec51be379938dc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.160516, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounts\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith accounts as (\n\n select *\n from {{ var('netsuite2_accounts') }}\n),\n\naccount_types as (\n\n select *\n from {{ var('netsuite2_account_types') }}\n),\n\njoined as (\n\n select \n accounts.*,\n account_types.type_name,\n account_types.is_balancesheet,\n account_types.is_leftside\n\n from accounts\n left join account_types\n on accounts.account_type_id = account_types.account_type_id\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__accounts", "package": null, "version": null}, {"name": "stg_netsuite2__account_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__account_types"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__accounts.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounts\"\n),\n\naccount_types as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__account_types\"\n),\n\njoined as (\n\n select \n accounts.*,\n account_types.type_name,\n account_types.is_balancesheet,\n account_types.is_leftside\n\n from accounts\n left join account_types\n on accounts.account_type_id = account_types.account_type_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__customers": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__customers", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__customers.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__customers.sql", "unique_id": "model.netsuite.int_netsuite2__customers", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__customers"], "alias": "int_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "8ec34512233045f4d7eed6c47f28f9a338ad9b033b1aaed7db9ca5fa41b15620"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.1642601, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__customers\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith customers as (\n\n select *\n from {{ var('netsuite2_customers') }}\n),\n\nentity_address as (\n\n select *\n from {{ var('netsuite2_entity_address') }}\n),\n\njoined as (\n\n select \n customers.*,\n entity_address.city,\n entity_address.state,\n entity_address.zipcode,\n entity_address.country\n\n from customers\n left join entity_address\n on coalesce(customers.default_billing_address_id, customers.default_shipping_address_id) = entity_address.nkey\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__customers", "package": null, "version": null}, {"name": "stg_netsuite2__entity_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__entity_address"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__customers.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__customers\"\n),\n\nentity_address as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__entity_address\"\n),\n\njoined as (\n\n select \n customers.*,\n entity_address.city,\n entity_address.state,\n entity_address.zipcode,\n entity_address.country\n\n from customers\n left join entity_address\n on coalesce(customers.default_billing_address_id, customers.default_shipping_address_id) = entity_address.nkey\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__accounting_periods": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__accounting_periods", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__accounting_periods.sql", "unique_id": "model.netsuite.int_netsuite2__accounting_periods", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__accounting_periods"], "alias": "int_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "56dee9fd235beb56adc0a69db49ec059f5b8ce8b286a88bac723b1be5a058ec4"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.168881, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__accounting_periods\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith accounting_periods as (\n\n select *\n from {{ var('netsuite2_accounting_periods') }}\n),\n\naccounting_period_fiscal_calendars as (\n\n select *\n from {{ var('netsuite2_accounting_period_fiscal_calendars') }}\n),\n\njoined as (\n\n select \n accounting_periods.*,\n accounting_period_fiscal_calendars.fiscal_calendar_id\n\n from accounting_periods\n left join accounting_period_fiscal_calendars\n on accounting_periods.accounting_period_id = accounting_period_fiscal_calendars.accounting_period_id\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_period_fiscal_cal", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__accounting_periods.sql", "compiled": true, "compiled_code": "\n\nwith accounting_periods as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_periods\"\n),\n\naccounting_period_fiscal_calendars as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\n),\n\njoined as (\n\n select \n accounting_periods.*,\n accounting_period_fiscal_calendars.fiscal_calendar_id\n\n from accounting_periods\n left join accounting_period_fiscal_calendars\n on accounting_periods.accounting_period_id = accounting_period_fiscal_calendars.accounting_period_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__consolidated_exchange_rates": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__consolidated_exchange_rates", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__consolidated_exchange_rates.sql", "unique_id": "model.netsuite.int_netsuite2__consolidated_exchange_rates", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__consolidated_exchange_rates"], "alias": "int_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite"}, "created_at": 1694127479.1731598, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__consolidated_exchange_rates\"", "raw_code": "", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": null, "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__locations": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite2__locations", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__locations.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__locations.sql", "unique_id": "model.netsuite.int_netsuite2__locations", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__locations"], "alias": "int_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "dcf63741bb203f254599a08da056e3d7863cf6ef32cd211b8bc03c9b25ef9c9c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.1758652, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite2__locations\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith locations as (\n\n select *\n from {{ var('netsuite2_locations') }}\n),\n\nlocation_main_address as (\n\n select *\n from {{ var('netsuite2_location_main_address') }}\n),\n\njoined as (\n\n select \n locations.*,\n location_main_address.city,\n location_main_address.state,\n location_main_address.zipcode,\n location_main_address.country\n\n from locations\n left join location_main_address\n on locations.main_address_id = location_main_address.nkey\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__locations", "package": null, "version": null}, {"name": "stg_netsuite2__location_main_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__location_main_address"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__locations.sql", "compiled": true, "compiled_code": "\n\nwith locations as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__locations\"\n),\n\nlocation_main_address as (\n\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__location_main_address\"\n),\n\njoined as (\n\n select \n locations.*,\n location_main_address.city,\n location_main_address.state,\n location_main_address.zipcode,\n location_main_address.country\n\n from locations\n left join location_main_address\n on locations.main_address_id = location_main_address.nkey\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite__income_statement": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite__income_statement", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/netsuite__income_statement.sql", "original_file_path": "models/netsuite/netsuite__income_statement.sql", "unique_id": "model.netsuite.netsuite__income_statement", "fqn": ["netsuite", "netsuite", "netsuite__income_statement"], "alias": "netsuite__income_statement", "checksum": {"name": "sha256", "checksum": "997c3c23f5eae42a544f6800370758d0cb2f19249557201ff5631684b263d615"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The income statement query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the income statement. It also joins in class, department and location information for enhanced reporting. \n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_full_name": {"name": "accounting_period_full_name", "description": "Accounting periods full name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Yes/No field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Yes/No field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number_and_name": {"name": "account_number_and_name", "description": "Concatenation of account number and account name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_full_name": {"name": "location_full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_full_name": {"name": "department_full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_statement_sort_helper": {"name": "income_statement_sort_helper", "description": "Helper column for sorting income statement records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_full_name": {"name": "subsidiary_full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.471433, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__income_statement\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ ref('int_netsuite__transactions_with_converted_amounts') }}\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n{% if var('income_statement_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ var('netsuite_transaction_lines') }}\n),\n\nclasses as (\n select * \n from {{ var('netsuite_classes') }}\n),\n\nlocations as (\n select * \n from {{ var('netsuite_locations') }}\n),\n\ndepartments as (\n select * \n from {{ var('netsuite_departments') }}\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n {{ dbt.concat(['accounts.account_number',\"'-'\", 'accounts.name']) }} as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for classes table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('classes_pass_through_columns', identifier='classes') }},\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n -converted_amount_using_transaction_accounting_period as converted_amount,\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.type_name) = 'income' then 1\n when lower(accounts.type_name) = 'cost of goods sold' then 2\n when lower(accounts.type_name) = 'expense' then 3\n when lower(accounts.type_name) = 'other income' then 4\n when lower(accounts.type_name) = 'other expense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') %}\n\n , transaction_details.{{ var('income_statement_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n \n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n join accounts on accounts.account_id = transactions_with_converted_amounts.account_id\n\n join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') != []%}\n join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n)\n\nselect *\nfrom income_statement", "language": "sql", "refs": [{"name": "int_netsuite__transactions_with_converted_amounts", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite__classes", "package": null, "version": null}, {"name": "stg_netsuite__locations", "package": null, "version": null}, {"name": "stg_netsuite__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt.concat"], "nodes": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__departments"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/netsuite__income_statement.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transaction_lines\"\n),\n\nclasses as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__classes\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__locations\"\n),\n\ndepartments as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__departments\"\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n accounts.account_number || '-' || accounts.name as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for classes table pass through columns.\n \n\n\n\n,\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n -converted_amount_using_transaction_accounting_period as converted_amount,\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.type_name) = 'income' then 1\n when lower(accounts.type_name) = 'cost of goods sold' then 2\n when lower(accounts.type_name) = 'expense' then 3\n when lower(accounts.type_name) = 'other income' then 4\n when lower(accounts.type_name) = 'other expense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n \n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n join accounts on accounts.account_id = transactions_with_converted_amounts.account_id\n\n join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n)\n\nselect *\nfrom income_statement", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite__transaction_details": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite__transaction_details", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/netsuite__transaction_details.sql", "original_file_path": "models/netsuite/netsuite__transaction_details.sql", "unique_id": "model.netsuite.netsuite__transaction_details", "fqn": ["netsuite", "netsuite", "netsuite__transaction_details"], "alias": "netsuite__transaction_details", "checksum": {"name": "sha256", "checksum": "e3cbc75b04e4732f87ec8ddd32a9cc9a63346e2cdb1c195bc844d770fa2129c3"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "This table uses Netsuite's core table, transaction_lines, and joins a handful of other tables to add more detail to those line items. For all transactions, you are able to see the associated accounting period, account and subsidiary. Where applicable, you can also see information about the customer, location, item, vendor, and department.\n", "columns": {"transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_memo": {"name": "transaction_memo", "description": "Memo associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_non_posting": {"name": "is_transaction_non_posting", "description": "Yes/No field, indicating whether or not the transaction line is non-posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the transaction (Closed, Pending Billing, Billing, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transaction occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_due_date": {"name": "transaction_due_date", "description": "Timestamp of the date which the transaction is due.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Type identifier of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_intercompany": {"name": "is_transaction_intercompany", "description": "Yes/No field, indicating whether or not the transaction is an intercompany transaction or an advanced intercompany transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_full_name": {"name": "accounting_period_full_name", "description": "Full name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Yes/No field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Yes/No field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_leftside": {"name": "is_account_leftside", "description": "Yes/No field indicating whether or not the account is leftside.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_payable": {"name": "is_accounts_payable", "description": "Yes/No field indicating whether or not the account type name includes 'accounts payable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_receivable": {"name": "is_accounts_receivable", "description": "Yes/No field indicating whether or not the account type name includes 'accounts receivable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_intercompany": {"name": "is_account_intercompany", "description": "Yes/No field indicating whether or not the account type name includes 'intercompany'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "Name of the parent account, if parent account relationship exists. Otherwise, the name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_income_account": {"name": "is_income_account", "description": "Yes/No field indicating whether or not the account is an income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_expense_account": {"name": "is_expense_account", "description": "Yes/No field indicating whether or not the account is an expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_city": {"name": "customer_city", "description": "City where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_state": {"name": "customer_state", "description": "State where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_zipcode": {"name": "customer_zipcode", "description": "Zip Code of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_country": {"name": "customer_country", "description": "Country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_date_first_order": {"name": "customer_date_first_order", "description": "Date customer placed first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_name": {"name": "item_name", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_type_name": {"name": "item_type_name", "description": "Type name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Description of the item for sales purposes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_name": {"name": "location_name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_city": {"name": "location_city", "description": "City used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_country": {"name": "location_country", "description": "Country used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type_name": {"name": "vendor_type_name", "description": "Type name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_create_date": {"name": "vendor_create_date", "description": "Date vendor was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_name": {"name": "currency_name", "description": "Name of the currency used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_symbol": {"name": "currency_symbol", "description": "Symbol used to identify the currency type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_amount": {"name": "transaction_amount", "description": "Total amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.472776, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__transaction_details\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite__transactions_with_converted_amounts')}}\n),\n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n),\n\naccounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ var('netsuite_transaction_lines') }}\n),\n\ntransactions as (\n select * \n from {{ var('netsuite_transactions') }}\n),\n\nincome_accounts as (\n select * \n from {{ var('netsuite_income_accounts') }}\n),\n\nexpense_accounts as (\n select * \n from {{ var('netsuite_expense_accounts') }}\n),\n\ncustomers as (\n select * \n from {{ var('netsuite_customers') }}\n),\n\nitems as (\n select * \n from {{ var('netsuite_items') }}\n),\n\nlocations as (\n select * \n from {{ var('netsuite_locations') }}\n),\n\nvendors as (\n select * \n from {{ var('netsuite_vendors') }}\n),\n\nvendor_types as (\n select * \n from {{ var('netsuite_vendor_types') }}\n),\n\ndepartments as (\n select * \n from {{ var('netsuite_departments') }}\n),\n\ncurrencies as (\n select * \n from {{ var('netsuite_currencies') }}\n),\n\nclasses as (\n select *\n from {{ var('netsuite_classes') }}\n),\n\ntransaction_details as (\n select\n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n lower(transaction_lines.non_posting_line) = 'yes' as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n (lower(transactions.is_advanced_intercompany) = 'yes' or lower(transactions.is_intercompany) = 'yes') as is_transaction_intercompany\n\n --The below script allows for transactions table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transactions_pass_through_columns', identifier='transactions') }} \n\n --The below script allows for transaction lines table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transaction_lines_pass_through_columns', identifier='transaction_lines') }},\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.full_name as accounting_period_full_name,\n accounting_periods.name as accounting_period_name,\n lower(accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n lower(accounts.is_leftside) = 't' as is_account_leftside,\n lower(accounts.type_name) like 'accounts payable%' as is_accounts_payable,\n lower(accounts.type_name) like 'accounts receivable%' as is_accounts_receivable,\n lower(accounts.name) like '%intercompany%' as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n income_accounts.income_account_id is not null as is_income_account,\n expense_accounts.expense_account_id is not null as is_expense_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n vendor_types.name as vendor_type_name,\n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n left join income_accounts \n on income_accounts.income_account_id = accounts.account_id\n\n left join expense_accounts \n on expense_accounts.expense_account_id = accounts.account_id\n\n left join customers \n on customers.customer_id = transaction_lines.company_id\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = transaction_lines.company_id\n\n left join vendor_types \n on vendor_types.vendor_type_id = vendors.vendor_type_id\n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n)\n\nselect *\nfrom transaction_details", "language": "sql", "refs": [{"name": "int_netsuite__transactions_with_converted_amounts", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite__transactions", "package": null, "version": null}, {"name": "stg_netsuite__income_accounts", "package": null, "version": null}, {"name": "stg_netsuite__expense_accounts", "package": null, "version": null}, {"name": "stg_netsuite__customers", "package": null, "version": null}, {"name": "stg_netsuite__items", "package": null, "version": null}, {"name": "stg_netsuite__locations", "package": null, "version": null}, {"name": "stg_netsuite__vendors", "package": null, "version": null}, {"name": "stg_netsuite__vendor_types", "package": null, "version": null}, {"name": "stg_netsuite__departments", "package": null, "version": null}, {"name": "stg_netsuite__currencies", "package": null, "version": null}, {"name": "stg_netsuite__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__vendors", "model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__classes"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/netsuite__transaction_details.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"\n),\n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts\"\n),\n\naccounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transaction_lines\"\n),\n\ntransactions as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transactions\"\n),\n\nincome_accounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__income_accounts\"\n),\n\nexpense_accounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__expense_accounts\"\n),\n\ncustomers as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__customers\"\n),\n\nitems as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__items\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__locations\"\n),\n\nvendors as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__vendors\"\n),\n\nvendor_types as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__vendor_types\"\n),\n\ndepartments as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__departments\"\n),\n\ncurrencies as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__currencies\"\n),\n\nclasses as (\n select *\n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__classes\"\n),\n\ntransaction_details as (\n select\n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n lower(transaction_lines.non_posting_line) = 'yes' as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n (lower(transactions.is_advanced_intercompany) = 'yes' or lower(transactions.is_intercompany) = 'yes') as is_transaction_intercompany\n\n --The below script allows for transactions table pass through columns.\n \n\n\n\n \n\n --The below script allows for transaction lines table pass through columns.\n \n\n\n\n,\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.full_name as accounting_period_full_name,\n accounting_periods.name as accounting_period_name,\n lower(accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n lower(accounts.is_leftside) = 't' as is_account_leftside,\n lower(accounts.type_name) like 'accounts payable%' as is_accounts_payable,\n lower(accounts.type_name) like 'accounts receivable%' as is_accounts_receivable,\n lower(accounts.name) like '%intercompany%' as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n income_accounts.income_account_id is not null as is_income_account,\n expense_accounts.expense_account_id is not null as is_expense_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n vendor_types.name as vendor_type_name,\n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n left join income_accounts \n on income_accounts.income_account_id = accounts.account_id\n\n left join expense_accounts \n on expense_accounts.expense_account_id = accounts.account_id\n\n left join customers \n on customers.customer_id = transaction_lines.company_id\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = transaction_lines.company_id\n\n left join vendor_types \n on vendor_types.vendor_type_id = vendors.vendor_type_id\n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n)\n\nselect *\nfrom transaction_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__accountxperiod_exchange_rate_map", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__accountxperiod_exchange_rate_map.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__accountxperiod_exchange_rate_map.sql", "unique_id": "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__accountxperiod_exchange_rate_map"], "alias": "int_netsuite__accountxperiod_exchange_rate_map", "checksum": {"name": "sha256", "checksum": "1f87a3144407c91a4c3d323e9bc32277d17ac530b23132c612f769e7fc802802"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 1/4) In order to accurately recreate the balance sheet and income statement, it is necessary to convert all transaction amounts into the currency of the parent subsidiary. The logic gets complicated fast, mostly because of the behavior of the balance sheet. On the balance sheet, the conversion rate you use for a single transaction will differ by accounting period. For example, if a transaction took place in August, and you are generating balances for the December period, you will need to convert the August transaction using the December conversion rate.\nThe first step here is to create a mapping of all accounting periods and the respective exchange rates, by subsidiary. This is called period_exchange_rate_map\nNext, we cross join the accounts table to the period_exchange_rate_map, so we can generate a map of exchange rates, by account, accounting period, and subsidiary.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.469422, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__accountxperiod_exchange_rate_map\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith accounts as (\n select * \n from {{ var('netsuite_accounts') }}\n), \n\naccounting_books as (\n select * \n from {{ var('netsuite_accounting_books') }}\n), \n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\nconsolidated_exchange_rates as (\n select * \n from {{ var('netsuite_consolidated_exchange_rates') }}\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id\n from consolidated_exchange_rates\n\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constrait - only the primary subsidiary has no parent\n and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where lower(is_primary) = 'yes')\n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect * \nfrom accountxperiod_exchange_rate_map", "language": "sql", "refs": [{"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_books", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__accountxperiod_exchange_rate_map.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts\"\n), \n\naccounting_books as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_books\"\n), \n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\nconsolidated_exchange_rates as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id\n from consolidated_exchange_rates\n\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constrait - only the primary subsidiary has no parent\n and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where lower(is_primary) = 'yes')\n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect * \nfrom accountxperiod_exchange_rate_map", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__transaction_lines_w_accounting_period", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__transaction_lines_w_accounting_period.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__transaction_lines_w_accounting_period.sql", "unique_id": "model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__transaction_lines_w_accounting_period"], "alias": "int_netsuite__transaction_lines_w_accounting_period", "checksum": {"name": "sha256", "checksum": "184230132efcc5526a046c3f3d9c6fd2f41b360f73b32a46fd67a85de83e741f"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 2/4) Next, we need to prepare a cleaned version of all transactions we need. Using the transactions and transaction_lines tables, the necessary fields are extracted, and transactions that are deleted, revenue arrangements, or non-posting transactions are filtered out. This is called transaction_lines_w_accounting_period. \n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.469635, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transaction_lines_w_accounting_period\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions as (\n select * \n from {{ var('netsuite_transactions') }}\n), \n\ntransaction_lines as (\n select * \n from {{ var('netsuite_transaction_lines') }}\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and lower(non_posting_line) != 'yes'\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "language": "sql", "refs": [{"name": "stg_netsuite__transactions", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__transaction_lines_w_accounting_period.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transactions\"\n), \n\ntransaction_lines as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transaction_lines\"\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and lower(non_posting_line) != 'yes'\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__transaction_and_reporting_periods": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__transaction_and_reporting_periods", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__transaction_and_reporting_periods.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__transaction_and_reporting_periods.sql", "unique_id": "model.netsuite.int_netsuite__transaction_and_reporting_periods", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__transaction_and_reporting_periods"], "alias": "int_netsuite__transaction_and_reporting_periods", "checksum": {"name": "sha256", "checksum": "e295bc4fe744d3079ea36f4b4a91fcfd55e121fbc637ebbd57262d5ff54351bd"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 3/4) Once we have the cleaned transaction_lines_w_accounting_periods, we now need to figure out which exchange rate we should use for the currency conversion. The balance sheet complicates things, as conversion rates vary based on the reporting period. Therefore, all transactions need to be converted not only for the period in which the transaction took place in, but also all subsequent periods. transaction_and_reporting_periods creates the necessary mapping for this.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.4698381, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transaction_and_reporting_periods\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith accounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.quarter = base.quarter\n and multiplier.year_0 = base.year_0\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as {{ dbt.type_timestamp() }}) <= {{ current_timestamp() }} \n\n where lower(base.quarter) = 'no'\n and lower(base.year_0) = 'no'\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.current_timestamp"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__transaction_and_reporting_periods.sql", "compiled": true, "compiled_code": "\n\nwith accounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.quarter = base.quarter\n and multiplier.year_0 = base.year_0\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as TIMESTAMP) <= now() \n\n where lower(base.quarter) = 'no'\n and lower(base.year_0) = 'no'\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__transactions_with_converted_amounts": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "int_netsuite__transactions_with_converted_amounts", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__transactions_with_converted_amounts.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__transactions_with_converted_amounts.sql", "unique_id": "model.netsuite.int_netsuite__transactions_with_converted_amounts", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__transactions_with_converted_amounts"], "alias": "int_netsuite__transactions_with_converted_amounts", "checksum": {"name": "sha256", "checksum": "b6e06d34bd0a98b41aa2a9df77fa23184d217a210c4d9a1035a9a8efcaef4654"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 4/4) Now that we have the exchange rates and the unconverted amounts, the next step is to calculate the converted total. Additionally, we add in a couple of extra fields that will help us in our final balance sheet and income statement queries.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694127479.470037, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transaction_lines_w_accounting_period as (\n select * \n from {{ ref('int_netsuite__transaction_lines_w_accounting_period') }}\n), \n\naccountxperiod_exchange_rate_map as (\n select * \n from {{ ref('int_netsuite__accountxperiod_exchange_rate_map') }}\n), \n\ntransaction_and_reporting_periods as (\n select * \n from {{ ref('int_netsuite__transaction_and_reporting_periods') }}\n), \n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id,\n exchange_reporting_period.exchange_rate as exchange_rate_reporting_period,\n exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n from transaction_lines_w_accounting_period\n\n join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n case\n when lower(accounts.type_name) in ('income','other income','expense','other expense','other income','cost of goods sold') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.type_name) in ('accounts receivable', 'bank', 'deferred expense', 'fixed asset', 'other asset', 'other current asset', 'unbilled receivable', 'prepaid expense') then 'Asset'\n when lower(accounts.type_name) in ('cost of goods sold', 'expense', 'other expense') then 'Expense'\n when lower(accounts.type_name) in ('income', 'other income') then 'Income'\n when lower(accounts.type_name) in ('accounts payable', 'credit card', 'deferred revenue', 'long term liability', 'other current liability') then 'Liability'\n when lower(accounts.type_name) in ('equity', 'retained earnings', 'net income') then 'Equity'\n when lower(accounts.type_name) in ('non posting', 'statistical') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts \n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "language": "sql", "refs": [{"name": "int_netsuite__transaction_lines_w_accounting_period", "package": null, "version": null}, {"name": "int_netsuite__accountxperiod_exchange_rate_map", "package": null, "version": null}, {"name": "int_netsuite__transaction_and_reporting_periods", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite_source.stg_netsuite__accounts"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__transactions_with_converted_amounts.sql", "compiled": true, "compiled_code": "\n\nwith transaction_lines_w_accounting_period as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transaction_lines_w_accounting_period\"\n), \n\naccountxperiod_exchange_rate_map as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__accountxperiod_exchange_rate_map\"\n), \n\ntransaction_and_reporting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transaction_and_reporting_periods\"\n), \n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts\"\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id,\n exchange_reporting_period.exchange_rate as exchange_rate_reporting_period,\n exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n from transaction_lines_w_accounting_period\n\n join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n case\n when lower(accounts.type_name) in ('income','other income','expense','other expense','other income','cost of goods sold') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.type_name) in ('accounts receivable', 'bank', 'deferred expense', 'fixed asset', 'other asset', 'other current asset', 'unbilled receivable', 'prepaid expense') then 'Asset'\n when lower(accounts.type_name) in ('cost of goods sold', 'expense', 'other expense') then 'Expense'\n when lower(accounts.type_name) in ('income', 'other income') then 'Income'\n when lower(accounts.type_name) in ('accounts payable', 'credit card', 'deferred revenue', 'long term liability', 'other current liability') then 'Liability'\n when lower(accounts.type_name) in ('equity', 'retained earnings', 'net income') then 'Equity'\n when lower(accounts.type_name) in ('non posting', 'statistical') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts \n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417", "fqn": ["netsuite_source", "unique_stg_netsuite__accounting_books_accounting_book_id"], "alias": "unique_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2613819, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_books_accounting_book_id"], "alias": "not_null_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.262469, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_accounting_period_id"], "alias": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2633548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id"], "alias": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2642088, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fiscal_calendar_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere fiscal_calendar_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "fiscal_calendar_id", "file_key_name": "models.stg_netsuite__accounting_periods", "attached_node": "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_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"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d"}, "created_at": 1694127479.265234, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "compiled": true, "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_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281", "fqn": ["netsuite_source", "unique_stg_netsuite__accounts_account_id"], "alias": "unique_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.271734, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounts_account_id"], "alias": "not_null_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.272608, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b", "fqn": ["netsuite_source", "unique_stg_netsuite__classes_class_id"], "alias": "unique_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.273667, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "fqn": ["netsuite_source", "not_null_stg_netsuite__classes_class_id"], "alias": "not_null_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.274744, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54", "fqn": ["netsuite_source", "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee"}, "created_at": 1694127479.275606, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "fqn": ["netsuite_source", "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86"}, "created_at": 1694127479.276451, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c", "fqn": ["netsuite_source", "unique_stg_netsuite__currencies_currency_id"], "alias": "unique_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.277462, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "fqn": ["netsuite_source", "not_null_stg_netsuite__currencies_currency_id"], "alias": "not_null_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2782998, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9", "fqn": ["netsuite_source", "unique_stg_netsuite__customers_customer_id"], "alias": "unique_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.279135, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "fqn": ["netsuite_source", "not_null_stg_netsuite__customers_customer_id"], "alias": "not_null_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.279954, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1", "fqn": ["netsuite_source", "unique_stg_netsuite__departments_department_id"], "alias": "unique_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.28092, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "fqn": ["netsuite_source", "not_null_stg_netsuite__departments_department_id"], "alias": "not_null_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.281742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__expense_accounts_expense_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff", "fqn": ["netsuite_source", "unique_stg_netsuite__expense_accounts_expense_account_id"], "alias": "unique_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2825658, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__expense_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__expense_accounts_expense_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n expense_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__expense_accounts_expense_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "fqn": ["netsuite_source", "not_null_stg_netsuite__expense_accounts_expense_account_id"], "alias": "not_null_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2835462, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__expense_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect expense_account_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__income_accounts_income_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07", "fqn": ["netsuite_source", "unique_stg_netsuite__income_accounts_income_account_id"], "alias": "unique_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.28437, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__income_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__income_accounts_income_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n income_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__income_accounts_income_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "fqn": ["netsuite_source", "not_null_stg_netsuite__income_accounts_income_account_id"], "alias": "not_null_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.285196, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__income_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__income_accounts_income_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect income_account_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654", "fqn": ["netsuite_source", "unique_stg_netsuite__items_item_id"], "alias": "unique_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.286023, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "fqn": ["netsuite_source", "not_null_stg_netsuite__items_item_id"], "alias": "not_null_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.286984, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2", "fqn": ["netsuite_source", "unique_stg_netsuite__locations_location_id"], "alias": "unique_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.287808, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "fqn": ["netsuite_source", "not_null_stg_netsuite__locations_location_id"], "alias": "not_null_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2886279, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0", "fqn": ["netsuite_source", "unique_stg_netsuite__subsidiaries_subsidiary_id"], "alias": "unique_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.289603, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "fqn": ["netsuite_source", "not_null_stg_netsuite__subsidiaries_subsidiary_id"], "alias": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.290431, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__transaction_lines_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_id"], "alias": "not_null_stg_netsuite__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.291255, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_line_id"], "alias": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2920718, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite__transaction_lines", "attached_node": "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_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"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad"}, "created_at": 1694127479.293036, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79", "fqn": ["netsuite_source", "unique_stg_netsuite__transactions_transaction_id"], "alias": "unique_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2957451, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "fqn": ["netsuite_source", "not_null_stg_netsuite__transactions_transaction_id"], "alias": "not_null_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.2966158, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__vendor_types_vendor_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69", "fqn": ["netsuite_source", "unique_stg_netsuite__vendor_types_vendor_type_id"], "alias": "unique_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.297465, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendor_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendor_types_vendor_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__vendor_types_vendor_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendor_types_vendor_type_id"], "alias": "not_null_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.298309, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendor_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_type_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39", "fqn": ["netsuite_source", "unique_stg_netsuite__vendors_vendor_id"], "alias": "unique_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.299296, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendors_vendor_id"], "alias": "not_null_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3001568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__account_types_account_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f", "fqn": ["netsuite_source", "unique_stg_netsuite2__account_types_account_type_id"], "alias": "unique_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.320944, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__account_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__account_types_account_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n account_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__account_types_account_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "fqn": ["netsuite_source", "not_null_stg_netsuite2__account_types_account_type_id"], "alias": "not_null_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3220322, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__account_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__account_types_account_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_type_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "alias": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.322915, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_book_subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127"}, "created_at": 1694127479.323783, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_book_subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_books_accounting_book_id"], "alias": "unique_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3250701, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_books_accounting_book_id"], "alias": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.326098, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "alias": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.327327, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_period_fiscal_cal", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415"}, "created_at": 1694127479.328253, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_period_fiscal_cal", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_periods_accounting_period_id"], "alias": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.329335, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n accounting_period_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_periods_accounting_period_id"], "alias": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.330185, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounts_account_id"], "alias": "unique_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.331049, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounts_account_id"], "alias": "not_null_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3318899, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98", "fqn": ["netsuite_source", "unique_stg_netsuite2__classes_class_id"], "alias": "unique_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3328729, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "fqn": ["netsuite_source", "not_null_stg_netsuite2__classes_class_id"], "alias": "not_null_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3337011, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a", "fqn": ["netsuite_source", "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1"}, "created_at": 1694127479.334547, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "fqn": ["netsuite_source", "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511"}, "created_at": 1694127479.335544, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78", "fqn": ["netsuite_source", "unique_stg_netsuite2__currencies_currency_id"], "alias": "unique_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.336386, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "fqn": ["netsuite_source", "not_null_stg_netsuite2__currencies_currency_id"], "alias": "not_null_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.337224, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2", "fqn": ["netsuite_source", "unique_stg_netsuite2__customers_customer_id"], "alias": "unique_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3380532, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "fqn": ["netsuite_source", "not_null_stg_netsuite2__customers_customer_id"], "alias": "not_null_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3390138, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b", "fqn": ["netsuite_source", "unique_stg_netsuite2__departments_department_id"], "alias": "unique_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3398762, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "fqn": ["netsuite_source", "not_null_stg_netsuite2__departments_department_id"], "alias": "not_null_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3407302, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__entities_entity_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50", "fqn": ["netsuite_source", "unique_stg_netsuite2__entities_entity_id"], "alias": "unique_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.341732, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__entities", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__entities_entity_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n entity_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__entities_entity_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "fqn": ["netsuite_source", "not_null_stg_netsuite2__entities_entity_id"], "alias": "not_null_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.342554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__entities", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__entities_entity_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect entity_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee", "fqn": ["netsuite_source", "unique_stg_netsuite2__items_item_id"], "alias": "unique_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3433878, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "fqn": ["netsuite_source", "not_null_stg_netsuite2__items_item_id"], "alias": "not_null_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.344218, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__jobs_job_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c", "fqn": ["netsuite_source", "unique_stg_netsuite2__jobs_job_id"], "alias": "unique_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.345175, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__jobs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__jobs_job_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n job_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__jobs_job_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "fqn": ["netsuite_source", "not_null_stg_netsuite2__jobs_job_id"], "alias": "not_null_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3460019, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__jobs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__jobs_job_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149", "fqn": ["netsuite_source", "unique_stg_netsuite2__locations_location_id"], "alias": "unique_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.346838, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "fqn": ["netsuite_source", "not_null_stg_netsuite2__locations_location_id"], "alias": "not_null_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3478138, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229", "fqn": ["netsuite_source", "unique_stg_netsuite2__subsidiaries_subsidiary_id"], "alias": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.348635, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "fqn": ["netsuite_source", "not_null_stg_netsuite2__subsidiaries_subsidiary_id"], "alias": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.349462, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id"], "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc"}, "created_at": 1694127479.350296, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id"], "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54"}, "created_at": 1694127479.351255, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines", "attached_node": "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_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"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6"}, "created_at": 1694127479.352101, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_accounting_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_line_id"], "alias": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.35481, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_lines_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_id"], "alias": "not_null_stg_netsuite2__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.355683, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_lines", "attached_node": "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_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"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145"}, "created_at": 1694127479.356554, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4", "fqn": ["netsuite_source", "unique_stg_netsuite2__transactions_transaction_id"], "alias": "unique_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.358885, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transactions_transaction_id"], "alias": "not_null_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3597372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendor_categories_vendor_category_id"], "alias": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.360728, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendor_categories", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_category_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendor_categories_vendor_category_id"], "alias": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.361566, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendor_categories", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_category_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "unique_stg_netsuite2__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendors_vendor_id"], "alias": "unique_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.3624089, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_integration_tests_4_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_stg_netsuite2__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendors_vendor_id"], "alias": "not_null_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.363553, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors", "attached_node": "model.netsuite_source.stg_netsuite2__vendors"}, "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite2__balance_sheet_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__balance_sheet_transaction_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1", "fqn": ["netsuite", "not_null_netsuite2__balance_sheet_transaction_id"], "alias": "not_null_netsuite2__balance_sheet_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.449147, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__balance_sheet_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__balance_sheet\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite2__balance_sheet_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__balance_sheet_transaction_line_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9", "fqn": ["netsuite", "not_null_netsuite2__balance_sheet_transaction_line_id"], "alias": "not_null_netsuite2__balance_sheet_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.450158, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__balance_sheet_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__balance_sheet\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id.c5f0a480aa": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id", "accounting_period_id", "account_name", "account_id"], "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_a3d8559a9ad5807ae6370db1d832c92c.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id.c5f0a480aa", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id"], "alias": "dbt_utils_unique_combination_o_a3d8559a9ad5807ae6370db1d832c92c", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_a3d8559a9ad5807ae6370db1d832c92c", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_a3d8559a9ad5807ae6370db1d832c92c"}, "created_at": 1694127479.4510632, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_a3d8559a9ad5807ae6370db1d832c92c\") }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/dbt_utils_unique_combination_o_a3d8559a9ad5807ae6370db1d832c92c.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id, accounting_period_id, account_name, account_id\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__balance_sheet\"\n group by transaction_line_id, transaction_id, accounting_period_id, account_name, account_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite2__income_statement_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__income_statement_transaction_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef", "fqn": ["netsuite", "not_null_netsuite2__income_statement_transaction_id"], "alias": "not_null_netsuite2__income_statement_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.453429, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__income_statement_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__income_statement\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite2__income_statement_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__income_statement_transaction_line_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706", "fqn": ["netsuite", "not_null_netsuite2__income_statement_transaction_line_id"], "alias": "not_null_netsuite2__income_statement_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.454297, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__income_statement_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__income_statement\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.eaaed6db80": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id", "accounting_period_id", "account_name"], "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_2ae665fecfbc7807e6f72ea1a70d2f9e.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.eaaed6db80", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name"], "alias": "dbt_utils_unique_combination_o_2ae665fecfbc7807e6f72ea1a70d2f9e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_2ae665fecfbc7807e6f72ea1a70d2f9e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_2ae665fecfbc7807e6f72ea1a70d2f9e"}, "created_at": 1694127479.455317, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_2ae665fecfbc7807e6f72ea1a70d2f9e\") }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/dbt_utils_unique_combination_o_2ae665fecfbc7807e6f72ea1a70d2f9e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id, accounting_period_id, account_name\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__income_statement\"\n group by transaction_line_id, transaction_id, accounting_period_id, account_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite2__transaction_details_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__transaction_details_transaction_line_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36", "fqn": ["netsuite", "not_null_netsuite2__transaction_details_transaction_line_id"], "alias": "not_null_netsuite2__transaction_details_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.4574049, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__transaction_details_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__transaction_details\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite2__transaction_details_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__transaction_details_transaction_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79", "fqn": ["netsuite", "not_null_netsuite2__transaction_details_transaction_id"], "alias": "not_null_netsuite2__transaction_details_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.458744, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__transaction_details_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__transaction_details\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.50c995eda5": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Accounts Receivable", "Bank", "Deferred Expense", "Fixed Asset", "Other Asset", "Other Current Asset", "Unbilled Receivable", "Prepaid Expense", "Cost of Goods Sold", "Expense", "Other Expense", "Income", "Other Income", "Accounts Payable", "Credit Card", "Deferred Revenue", "Long Term Liability", "Other Current Liability", "Equity", "Retained Earnings", "Net Income", "Non Posting", "Statistical"], "column_name": "account_type_name", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical", "resource_type": "test", "package_name": "netsuite", "path": "accepted_values_netsuite2__tra_c48614dd09dee194c20831fb551a511f.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.50c995eda5", "fqn": ["netsuite", "accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical"], "alias": "accepted_values_netsuite2__tra_c48614dd09dee194c20831fb551a511f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_netsuite2__tra_c48614dd09dee194c20831fb551a511f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "warn", "alias": "accepted_values_netsuite2__tra_c48614dd09dee194c20831fb551a511f"}, "created_at": 1694127479.459808, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_netsuite2__tra_c48614dd09dee194c20831fb551a511f\") }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/accepted_values_netsuite2__tra_c48614dd09dee194c20831fb551a511f.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n account_type_name as value_field,\n count(*) as n_records\n\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__transaction_details\"\n group by account_type_name\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Accounts Receivable','Bank','Deferred Expense','Fixed Asset','Other Asset','Other Current Asset','Unbilled Receivable','Prepaid Expense','Cost of Goods Sold','Expense','Other Expense','Income','Other Income','Accounts Payable','Credit Card','Deferred Revenue','Long Term Liability','Other Current Liability','Equity','Retained Earnings','Net Income','Non Posting','Statistical'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_name", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id.993bc3c9b5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id"], "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_254f8c8b3a2bb4e709d7aa192955990d.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id.993bc3c9b5", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id"], "alias": "dbt_utils_unique_combination_o_254f8c8b3a2bb4e709d7aa192955990d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_254f8c8b3a2bb4e709d7aa192955990d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_254f8c8b3a2bb4e709d7aa192955990d"}, "created_at": 1694127479.467326, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_254f8c8b3a2bb4e709d7aa192955990d\") }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/dbt_utils_unique_combination_o_254f8c8b3a2bb4e709d7aa192955990d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite2__transaction_details\"\n group by transaction_line_id, transaction_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite__income_statement_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__income_statement_transaction_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d", "fqn": ["netsuite", "not_null_netsuite__income_statement_transaction_id"], "alias": "not_null_netsuite__income_statement_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.477367, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__income_statement_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__income_statement\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite__income_statement", "attached_node": "model.netsuite.netsuite__income_statement"}, "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite__income_statement_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__income_statement_transaction_line_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80", "fqn": ["netsuite", "not_null_netsuite__income_statement_transaction_line_id"], "alias": "not_null_netsuite__income_statement_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.478234, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__income_statement_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__income_statement\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite__income_statement", "attached_node": "model.netsuite.netsuite__income_statement"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id", "accounting_period_id", "account_name"], "model": "{{ get_where_subquery(ref('netsuite__income_statement')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name"], "alias": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920"}, "created_at": 1694127479.47923, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920\") }}", "language": "sql", "refs": [{"name": "netsuite__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id, accounting_period_id, account_name\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__income_statement\"\n group by transaction_line_id, transaction_id, accounting_period_id, account_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite__income_statement", "attached_node": "model.netsuite.netsuite__income_statement"}, "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite__transaction_details_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__transaction_details_transaction_line_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3", "fqn": ["netsuite", "not_null_netsuite__transaction_details_transaction_line_id"], "alias": "not_null_netsuite__transaction_details_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.481319, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__transaction_details_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__transaction_details\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite__transaction_details_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__transaction_details_transaction_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58", "fqn": ["netsuite", "not_null_netsuite__transaction_details_transaction_id"], "alias": "not_null_netsuite__transaction_details_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694127479.482353, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__transaction_details_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__transaction_details\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Accounts Receivable", "Bank", "Deferred Expense", "Fixed Asset", "Other Asset", "Other Current Asset", "Unbilled Receivable", "Prepaid Expense", "Cost of Goods Sold", "Expense", "Other Expense", "Income", "Other Income", "Accounts Payable", "Credit Card", "Deferred Revenue", "Long Term Liability", "Other Current Liability", "Equity", "Retained Earnings", "Net Income", "Non Posting", "Statistical"], "column_name": "account_type_name", "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical", "resource_type": "test", "package_name": "netsuite", "path": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096", "fqn": ["netsuite", "accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical"], "alias": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "warn", "alias": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd"}, "created_at": 1694127479.483243, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd\") }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n account_type_name as value_field,\n count(*) as n_records\n\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__transaction_details\"\n group by account_type_name\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Accounts Receivable','Bank','Deferred Expense','Fixed Asset','Other Asset','Other Current Asset','Unbilled Receivable','Prepaid Expense','Cost of Goods Sold','Expense','Other Expense','Income','Other Income','Accounts Payable','Credit Card','Deferred Revenue','Long Term Liability','Other Current Liability','Equity','Retained Earnings','Net Income','Non Posting','Statistical'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_name", "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id"], "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id"], "alias": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197"}, "created_at": 1694127479.485585, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197\") }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__transaction_details\"\n group by transaction_line_id, transaction_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "seed.netsuite_integration_tests.netsuite_accounts_data": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "netsuite_accounts_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_accounts_data.csv", "original_file_path": "seeds/netsuite_accounts_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_accounts_data", "fqn": ["netsuite_integration_tests", "netsuite_accounts_data"], "alias": "netsuite_accounts_data", "checksum": {"name": "sha256", "checksum": "ad07198da0e2a58c008a066867fb5264f590885a6c2ad402d5cd9b82cdea1421"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1694128568.177501, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounts_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "model.netsuite.netsuite__balance_sheet": {"database": "postgres", "schema": "netsuite_integration_tests_4_netsuite", "name": "netsuite__balance_sheet", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/netsuite__balance_sheet.sql", "original_file_path": "models/netsuite/netsuite__balance_sheet.sql", "unique_id": "model.netsuite.netsuite__balance_sheet", "fqn": ["netsuite", "netsuite", "netsuite__balance_sheet"], "alias": "netsuite__balance_sheet", "checksum": {"name": "sha256", "checksum": "3e24fc640a087a7f611bb5dafc8a92245273dcad097d539eba745c5e7bc47cf7"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The balance sheet query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the balance sheet. Transactions that are not balance sheet transactions are categorized as either Retained Earnings or Net Income. The Cumulative Translation Adjustment total, which in most cases does not have transactions associated with it, is calculated manually in the second part of the query.\n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_full_name": {"name": "accounting_period_full_name", "description": "Accounting periods full name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Yes/No field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Yes/No field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance_sheet_sort_helper": {"name": "balance_sheet_sort_helper", "description": "Helper column for sorting balance sheet records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1694128953.98931, "relation_name": "\"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__balance_sheet\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite__transactions_with_converted_amounts')}}\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n{% if var('balance_sheet_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n), \n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.type_name\n end as account_type_name,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_id\n end as account_id,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n case\n when lower(accounts.is_balancesheet) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n \n case\n when lower(accounts.type_name) = 'bank' then 1\n when lower(accounts.type_name) = 'accounts receivable' then 2\n when lower(accounts.type_name) = 'unbilled receivable' then 3\n when lower(accounts.type_name) = 'other current asset' then 4\n when lower(accounts.type_name) = 'fixed asset' then 5\n when lower(accounts.type_name) = 'other asset' then 6\n when lower(accounts.type_name) = 'deferred expense' then 7\n when lower(accounts.type_name) = 'accounts payable' then 8\n when lower(accounts.type_name) = 'credit card' then 9\n when lower(accounts.type_name) = 'other current liability' then 10\n when lower(accounts.type_name) = 'long term liability' then 11\n when lower(accounts.type_name) = 'deferred revenue' then 12\n when lower(accounts.type_name) = 'equity' then 13\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 15\n when lower(accounts.is_balancesheet) = 'f' then 14\n else null\n end as balance_sheet_sort_helper\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n \n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n null as account_id,\n null as account_number,\n\n {% if var('accounts_pass_through_columns') %}\n {% for field in var('accounts_pass_through_columns') %}\n null as {{ field.alias if field.alias else field.name }},\n {% endfor %}\n {% endif %}\n\n case\n when lower(account_category) = 'equity' or is_income_statement then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n\n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n)\n\nselect *\nfrom balance_sheet", "language": "sql", "refs": [{"name": "int_netsuite__transactions_with_converted_amounts", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/netsuite__balance_sheet.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__accounting_periods\"\n), \n\nsubsidiaries as (\n select * \n from \"postgres\".\"netsuite_integration_tests_4_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.type_name\n end as account_type_name,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_id\n end as account_id,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n case\n when lower(accounts.is_balancesheet) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n \n case\n when lower(accounts.type_name) = 'bank' then 1\n when lower(accounts.type_name) = 'accounts receivable' then 2\n when lower(accounts.type_name) = 'unbilled receivable' then 3\n when lower(accounts.type_name) = 'other current asset' then 4\n when lower(accounts.type_name) = 'fixed asset' then 5\n when lower(accounts.type_name) = 'other asset' then 6\n when lower(accounts.type_name) = 'deferred expense' then 7\n when lower(accounts.type_name) = 'accounts payable' then 8\n when lower(accounts.type_name) = 'credit card' then 9\n when lower(accounts.type_name) = 'other current liability' then 10\n when lower(accounts.type_name) = 'long term liability' then 11\n when lower(accounts.type_name) = 'deferred revenue' then 12\n when lower(accounts.type_name) = 'equity' then 13\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 15\n when lower(accounts.is_balancesheet) = 'f' then 14\n else null\n end as balance_sheet_sort_helper\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n null as account_id,\n null as account_number,\n\n \n\n case\n when lower(account_category) = 'equity' or is_income_statement then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n)\n\nselect *\nfrom balance_sheet", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite__balance_sheet_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__balance_sheet_transaction_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e", "fqn": ["netsuite", "not_null_netsuite__balance_sheet_transaction_id"], "alias": "not_null_netsuite__balance_sheet_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694128953.993964, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__balance_sheet_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__balance_sheet\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite__balance_sheet", "attached_node": "model.netsuite.netsuite__balance_sheet"}, "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "not_null_netsuite__balance_sheet_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__balance_sheet_transaction_line_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32", "fqn": ["netsuite", "not_null_netsuite__balance_sheet_transaction_line_id"], "alias": "not_null_netsuite__balance_sheet_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1694128953.9951339, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__balance_sheet_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__balance_sheet\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite__balance_sheet", "attached_node": "model.netsuite.netsuite__balance_sheet"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id", "accounting_period_id", "account_name"], "model": "{{ get_where_subquery(ref('netsuite__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "netsuite_integration_tests_4_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name"], "alias": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876"}, "created_at": 1694128953.99634, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876\") }}", "language": "sql", "refs": [{"name": "netsuite__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id, accounting_period_id, account_name\n from \"postgres\".\"netsuite_integration_tests_4_netsuite\".\"netsuite__balance_sheet\"\n group by transaction_line_id, transaction_id, accounting_period_id, account_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite__balance_sheet", "attached_node": "model.netsuite.netsuite__balance_sheet"}}, "sources": {"source.netsuite_source.netsuite2.account_type": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "account_type", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.account_type", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "account_type"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_type_data", "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "longname": {"name": "longname", "description": "The name of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_account_type_data\"", "created_at": 1694127479.4881191}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounting_book_subsidiaries", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book_subsidiaries"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_sub_data", "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_book_sub_data\"", "created_at": 1694127479.4882472}, "source.netsuite_source.netsuite2.accounting_book": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounting_book", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_book", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "basebook": {"name": "basebook", "description": "Reference to the base book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effectiveperiod": {"name": "effectiveperiod", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_book_data\"", "created_at": 1694127479.488363}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounting_period_fiscal_calendars", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period_fiscal_calendars"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_fiscal_cal_data", "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_period_fiscal_cal_data\"", "created_at": 1694127479.4884648}, "source.netsuite_source.netsuite2.accounting_period": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounting_period", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_period", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "periodname": {"name": "periodname", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "startdate": {"name": "startdate", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enddate": {"name": "enddate", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closedondate": {"name": "closedondate", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_accounting_period_data\"", "created_at": 1694127479.48858}, "source.netsuite_source.netsuite2.account": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "account", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.account", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "account"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external account,", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "acctnumber": {"name": "acctnumber", "description": "Netsuite generated account number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accttype": {"name": "accttype", "description": "Reference to the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferralacct": {"name": "deferralacct", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cashflowrate": {"name": "cashflowrate", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "generalrate": {"name": "generalrate", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_account_data\"", "created_at": 1694127479.488699}, "source.netsuite_source.netsuite2.classification": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "classification", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.classification", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "classification"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_classification_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_classification_data\"", "created_at": 1694127479.488801}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "consolidated_exchange_rate", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "consolidated_exchange_rate"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_consolidated_exchange_rate_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "fromcurrency": {"name": "fromcurrency", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fromsubsidiary": {"name": "fromsubsidiary", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tocurrency": {"name": "tocurrency", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tosubsidiary": {"name": "tosubsidiary", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currentrate": {"name": "currentrate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "averagerate": {"name": "averagerate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historicalrate": {"name": "historicalrate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_consolidated_exchange_rate_data\"", "created_at": 1694127479.488908}, "source.netsuite_source.netsuite2.currency": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "currency", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.currency", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "currency"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_currency_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_currency_data\"", "created_at": 1694127479.489005}, "source.netsuite_source.netsuite2.customer": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "customer", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.customer", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "customer"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_customer_data", "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, "constraints": [], "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "firstname": {"name": "firstname", "description": "First name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lastname": {"name": "lastname", "description": "Last name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Customers email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "receivablesaccount": {"name": "receivablesaccount", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "firstorderdate": {"name": "firstorderdate", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_customer_data\"", "created_at": 1694127479.489175}, "source.netsuite_source.netsuite2.department": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "department", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.department", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "department"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_department_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_department_data\"", "created_at": 1694127479.489281}, "source.netsuite_source.netsuite2.entity": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "entity", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.entity", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entities_data", "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, "constraints": [], "quote": null, "tags": []}, "contact": {"name": "contact", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee": {"name": "employee", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entitytitle": {"name": "entitytitle", "description": "The entity name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Value indicating whether the entity is a person (either yes or no).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "project": {"name": "project", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "The unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_entities_data\"", "created_at": 1694127479.489387}, "source.netsuite_source.netsuite2.entity_address": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "entity_address", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.entity_address", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity_address"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entity_address_data", "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_entity_address_data\"", "created_at": 1694127479.489496}, "source.netsuite_source.netsuite2.item": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "item", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.item", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "item"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_item_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "itemtype": {"name": "itemtype", "description": "Item type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assetaccount": {"name": "assetaccount", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expenseaccount": {"name": "expenseaccount", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gainlossaccount": {"name": "gainlossaccount", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incomeaccount": {"name": "incomeaccount", "description": "Reference to the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intercoexpenseaccount": {"name": "intercoexpenseaccount", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intercoincomeaccount": {"name": "intercoincomeaccount", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferralaccount": {"name": "deferralaccount", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferredrevenueaccount": {"name": "deferredrevenueaccount", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_item_data\"", "created_at": 1694127479.489612}, "source.netsuite_source.netsuite2.job": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "job", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.job", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "job"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_job_data", "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, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "Reference the the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Default billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_job_data\"", "created_at": 1694127479.4897122}, "source.netsuite_source.netsuite2.location_main_address": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "location_main_address", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.location_main_address", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "location_main_address"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_main_address_data", "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_location_main_address_data\"", "created_at": 1694127479.489821}, "source.netsuite_source.netsuite2.location": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "location", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.location", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "location"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_location_data\"", "created_at": 1694127479.4899251}, "source.netsuite_source.netsuite2.subsidiary": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "subsidiary", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.subsidiary", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "subsidiary"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_subsidiary_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_subsidiary_data\"", "created_at": 1694127479.4900339}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "transaction_accounting_line", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_accounting_line"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_tran_acct_line_data", "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, "constraints": [], "quote": null, "tags": []}, "transactionline": {"name": "transactionline", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "netamount": {"name": "netamount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account": {"name": "account", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "debit": {"name": "debit", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amountpaid": {"name": "amountpaid", "description": "Total amount paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amountunpaid": {"name": "amountunpaid", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_tran_acct_line_data\"", "created_at": 1694127479.490143}, "source.netsuite_source.netsuite2.transaction_line": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "transaction_line", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.transaction_line", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_line"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_line_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction": {"name": "transaction", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "linesequencenumber": {"name": "linesequencenumber", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item": {"name": "item", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_transaction_line_data\"", "created_at": 1694127479.4905431}, "source.netsuite_source.netsuite2.transaction": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "transaction", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.transaction", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transactionnumber": {"name": "transactionnumber", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "createddate": {"name": "createddate", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duedate": {"name": "duedate", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closedate": {"name": "closedate", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_transaction_data\"", "created_at": 1694127479.490664}, "source.netsuite_source.netsuite2.vendor_category": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "vendor_category", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.vendor_category", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor_category"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_category_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_vendor_category_data\"", "created_at": 1694127479.490761}, "source.netsuite_source.netsuite2.vendor": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "vendor", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.vendor", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "datecreated": {"name": "datecreated", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite2_vendor_data\"", "created_at": 1694127479.49086}, "source.netsuite_source.netsuite.accounting_books": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounting_books", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.accounting_books", "fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_books"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_books_data", "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, "constraints": [], "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounting_books_data\"", "created_at": 1694127479.490957}, "source.netsuite_source.netsuite.accounting_periods": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounting_periods", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.accounting_periods", "fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_periods"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_periods_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "starting": {"name": "starting", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ending": {"name": "ending", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounting_periods_data\"", "created_at": 1694127479.4910662}, "source.netsuite_source.netsuite.accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "accounts", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.accounts", "fqn": ["netsuite_source", "netsuite", "netsuite", "accounts"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounts_data", "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, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "accountingnumber": {"name": "accountingnumber", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_accounts_data\"", "created_at": 1694127479.49117}, "source.netsuite_source.netsuite.classes": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "classes", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.classes", "fqn": ["netsuite_source", "netsuite", "netsuite", "classes"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_classes_data", "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_classes_data\"", "created_at": 1694127479.491266}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "consolidated_exchange_rates", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates", "fqn": ["netsuite_source", "netsuite", "netsuite", "consolidated_exchange_rates"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_consolidated_exchange_rates_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_consolidated_exchange_rates_data\"", "created_at": 1694127479.491366}, "source.netsuite_source.netsuite.currencies": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "currencies", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.currencies", "fqn": ["netsuite_source", "netsuite", "netsuite", "currencies"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_currencies_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_currencies_data\"", "created_at": 1694127479.49146}, "source.netsuite_source.netsuite.customers": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "customers", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.customers", "fqn": ["netsuite_source", "netsuite", "netsuite", "customers"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_customers_data", "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, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_extid": {"name": "customer_extid", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_first_order": {"name": "date_first_order", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_customers_data\"", "created_at": 1694127479.491565}, "source.netsuite_source.netsuite.departments": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "departments", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.departments", "fqn": ["netsuite_source", "netsuite", "netsuite", "departments"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_departments_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_departments_data\"", "created_at": 1694127479.491664}, "source.netsuite_source.netsuite.expense_accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "expense_accounts", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.expense_accounts", "fqn": ["netsuite_source", "netsuite", "netsuite", "expense_accounts"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_expense_accounts_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_expense_accounts_data\"", "created_at": 1694127479.491762}, "source.netsuite_source.netsuite.income_accounts": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "income_accounts", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.income_accounts", "fqn": ["netsuite_source", "netsuite", "netsuite", "income_accounts"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_income_accounts_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_income_accounts_data\"", "created_at": 1694127479.491901}, "source.netsuite_source.netsuite.items": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "items", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.items", "fqn": ["netsuite_source", "netsuite", "netsuite", "items"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_items_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "salesdescription": {"name": "salesdescription", "description": "The items sales description.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_items_data\"", "created_at": 1694127479.4920042}, "source.netsuite_source.netsuite.locations": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "locations", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.locations", "fqn": ["netsuite_source", "netsuite", "netsuite", "locations"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_locations_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_locations_data\"", "created_at": 1694127479.492105}, "source.netsuite_source.netsuite.subsidiaries": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "subsidiaries", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.subsidiaries", "fqn": ["netsuite_source", "netsuite", "netsuite", "subsidiaries"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_subsidiaries_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_subsidiaries_data\"", "created_at": 1694127479.492206}, "source.netsuite_source.netsuite.transaction_lines": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "transaction_lines", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.transaction_lines", "fqn": ["netsuite_source", "netsuite", "netsuite", "transaction_lines"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transaction_lines_data", "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_transaction_lines_data\"", "created_at": 1694127479.4923148}, "source.netsuite_source.netsuite.transactions": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "transactions", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.transactions", "fqn": ["netsuite_source", "netsuite", "netsuite", "transactions"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transactions_data", "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, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_transactions_data\"", "created_at": 1694127479.492419}, "source.netsuite_source.netsuite.vendor_types": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "vendor_types", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.vendor_types", "fqn": ["netsuite_source", "netsuite", "netsuite", "vendor_types"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendor_types_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_vendor_types_data\"", "created_at": 1694127479.4925141}, "source.netsuite_source.netsuite.vendors": {"database": "postgres", "schema": "netsuite_integration_tests_4", "name": "vendors", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.vendors", "fqn": ["netsuite_source", "netsuite", "netsuite", "vendors"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendors_data", "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, "constraints": [], "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The vendor's company name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_integration_tests_4\".\"netsuite_vendors_data\"", "created_at": 1694127479.492613}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.445395, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.445668, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.445785, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.445892, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.445996, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.447192, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.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', 'm')\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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.447818, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4554439, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.455921, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.456219, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.456521, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.456966, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.457377, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.457535, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.457851, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4582899, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.459185, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.459399, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.459834, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.4601269, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.460526, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.460742, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.461278, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.461462, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.461568, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.461727, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.461853, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.463579, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4638379, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_materialized_view_as_sql": {"name": "postgres__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- get_create_materialized_view_as_sql(intermediate_relation, sql) -}}\n\n {% if existing_relation is not none %}\n alter materialized view {{ existing_relation }} rename to {{ backup_relation.include(database=False, schema=False) }};\n {% endif %}\n\n alter materialized view {{ intermediate_relation }} rename to {{ relation.include(database=False, schema=False) }};\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4642198, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.464483, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4645739, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.464989, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4652128, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.4655502, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.46619, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.466385, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.467005, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.47009, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4702988, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.470787, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1694127477.471166, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.472203, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.472405, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4725509, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4726882, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4728231, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.473263, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.473592, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4738848, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4743009, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.474556, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4778738, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.478029, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.478229, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.478952, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "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": 1694127477.479188, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4793751, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) 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 %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.480733, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.482183, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.485767, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.486096, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.486315, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.486418, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4865532, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4866571, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.486838, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.487668, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.487849, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4880798, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.488485, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.494425, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.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 -%}", "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": 1694127477.496329, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.496751, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4970372, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.497379, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.49773, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.49934, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.4999301, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.500712, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.500978, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.501888, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.507346, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_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 %}", "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": 1694127477.508925, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "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": 1694127477.509161, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\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 {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\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 %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.510046, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.510289, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.510858, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.511415, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.512183, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.512396, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.512564, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.512827, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5129979, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.513271, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.513448, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5136929, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.513868, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.514008, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5142488, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.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('predicates', none) or 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, 'incremental_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 %}", "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": 1694127477.518995, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.523869, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.524985, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.526249, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.527099, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.53141, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.53178, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5320141, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_materialized_view_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.533222, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.53344, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\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{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "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": 1694127477.5340621, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.534465, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.534603, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.535041, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5352142, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.535501, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.53563, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_as_sql": {"name": "get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.get_replace_materialized_view_as_sql", "macro_sql": "{% macro get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- log('Applying REPLACE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_replace_materialized_view_as_sql', 'dbt')(relation, sql, existing_relation, backup_relation, intermediate_relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.536015, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_as_sql": {"name": "default__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_as_sql", "macro_sql": "{% macro default__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5362508, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.536561, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.536693, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.536905, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.537011, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.537282, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.537409, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\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 {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "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": 1694127477.540266, "supported_languages": ["sql"]}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.541301, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.541412, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.541884, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5420291, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.542146, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.543338, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.543673, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.543982, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "unique_id": "macro.dbt.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 /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\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 %}", "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": 1694127477.546475, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.54723, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5473962, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.547773, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.548349, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.548754, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.548921, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.549076, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "unique_id": "macro.dbt.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 /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\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 -%}", "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": 1694127477.5517461, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.552015, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.552211, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "unique_id": "macro.dbt.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=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "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": 1694127477.553532, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.553905, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.554053, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.554224, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.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 }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.55459, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.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 comparison 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 %}", "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": 1694127477.557448, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.561763, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.562687, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.562916, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.56336, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.563539, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5636601, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5637949, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.563905, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.564081, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.56421, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.564679, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.564865, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.5662231, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.566695, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.567064, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5675678, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.567819, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.568138, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5685189, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.568746, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5690591, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.56932, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.569539, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5700321, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5713978, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.572126, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5724401, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5742238, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.575372, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5760908, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.576313, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.576534, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.576607, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5769181, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.577069, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.577301, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.577416, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.577651, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5777469, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5780602, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5782132, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.578441, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.578513, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.578807, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.578959, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5792398, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.579457, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.58014, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5804958, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5807989, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.580945, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.581195, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5814211, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.581725, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.581867, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5820851, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5822232, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5824409, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5825322, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.582783, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.582901, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.583115, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.583206, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5840268, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.584162, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.584369, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.584501, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.584642, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.584776, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5849202, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.585078, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.585217, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5853472, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5854888, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5856168, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.585757, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5858822, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.586126, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.586247, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.586467, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.586566, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.586865, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.587102, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5872371, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.587689, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.587897, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.588095, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5883362, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.588452, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.588779, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5889978, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5892448, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5893629, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.589695, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.589857, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5900018, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5901592, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.590589, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.590719, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.590844, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5909388, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.591091, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.591156, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.591305, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.591894, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.592834, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.593018, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.593238, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.593714, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5939178, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5940511, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.594197, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.594315, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.596715, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.596868, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5970619, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.597325, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.597547, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.597839, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5980039, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5981472, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.598332, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5986502, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5988731, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5993679, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.599575, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.599701, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.5998878, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6002612, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.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')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.600618, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.600873, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.601067, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.602805, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.602944, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.603111, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.603224, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.603575, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "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": 1694127477.6037729, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6038778, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.604105, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.604286, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.604537, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.60484, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.60512, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.605814, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.606005, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.606234, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6064441, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.607455, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.608068, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6082208, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6084008, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.608554, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.608792, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.609225, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.610501, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6107352, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6109052, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.611047, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.611209, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.611424, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.611744, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.612222, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.612406, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.612588, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.613446, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {%- if relation.is_table -%}\n {{- drop_table(relation) -}}\n {%- elif relation.is_view -%}\n {{- drop_view(relation) -}}\n {%- elif relation.is_materialized_view -%}\n {{- drop_materialized_view(relation) -}}\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endif -%}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.drop_table", "macro.dbt.drop_view", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.613944, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6141381, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.614239, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6143942, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.614486, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6146402, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.614732, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "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": 1694127477.6167219, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.616879, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6171799, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6173928, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.617601, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6177652, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.618547, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.618866, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.619037, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6193721, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6196532, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.620208, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "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": 1694127477.6204438, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.621135, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.622686, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.622824, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.623544, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.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('.'): resolve_model_name(resolved)}) -%}\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 %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.623903, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_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.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6244102, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.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 {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\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, **kwargs: ref(*args, **kwargs, 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 %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6248262, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6248882, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.62533, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.625534, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6257868, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.626037, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.626341, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.626762, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.627167, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.627836, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.628114, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.628394, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.629334, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.630226, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6309812, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.632087, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.63279, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6331189, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.633805, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6346219, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.635041, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.635466, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.636023, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.636459, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6369522, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6373062, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6379058, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\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 pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.638735, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6392992, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.639926, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6405098, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.640835, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.641212, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.641557, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.642157, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.642924, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6437418, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.644585, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.645267, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.64627, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.646732, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.646997, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.649956, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.651377, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.651616, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6517591, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.652145, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6523871, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.652558, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.652782, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6529331, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6534789, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.65421, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.654827, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.655348, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.655699, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.656102, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.656503, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(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_subtract` macro 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.raise_compiler_error(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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.657023, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.657322, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.657641, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6582541, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6592278, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.660068, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6604722, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.660658, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.66116, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.661875, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.662632, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6629949, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.663247, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.664295, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.665685, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.667021, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.66861, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.668896, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6690261, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6717749, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.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 -%}", "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": 1694127477.67504, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.675364, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.675603, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.676356, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.676758, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6769679, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6771479, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6772962, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.677449, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6777961, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6780171, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.678347, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.678832, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.679132, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.679422, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6808279, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.681153, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6818502, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._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 %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.682291, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.683244, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.684567, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.685486, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6862159, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.686816, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.6876018, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.68843, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.688854, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.689025, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1694127477.689368, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.689884, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.69028, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.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 -%}", "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": 1694127477.6908312, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.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", "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": 1694127477.6912792, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.691401, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.691521, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.691645, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.692081, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.692954, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6938949, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.6941419, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.695555, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.696259, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.7006762, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.701282, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.702056, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.702701, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.703348, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.704203, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.7043579, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.704452, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.7072508, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.713977, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.714106, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.7141728, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.714663, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\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=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.716326, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.716697, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.716974, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.7172348, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.7175748, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.717769, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.717963, "supported_languages": null}, "macro.netsuite_source.get_expense_accounts_columns": {"name": "get_expense_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_expense_accounts_columns.sql", "original_file_path": "macros/get_expense_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.720032, "supported_languages": null}, "macro.netsuite_source.get_locationmainaddress_columns": {"name": "get_locationmainaddress_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_locationmainaddress_columns.sql", "original_file_path": "macros/get_locationmainaddress_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.722036, "supported_languages": null}, "macro.netsuite_source.get_accounts_columns": {"name": "get_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.723603, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounts_columns": {"name": "get_netsuite2_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.725267, "supported_languages": null}, "macro.netsuite_source.get_classes_columns": {"name": "get_classes_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.725999, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_classes_columns": {"name": "get_netsuite2_classes_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.7268171, "supported_languages": null}, "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns": {"name": "get_accountingperiodfiscalcalendars_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "original_file_path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.727809, "supported_languages": null}, "macro.netsuite_source.get_accountingbooksubsidiaries_columns": {"name": "get_accountingbooksubsidiaries_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accountingbooksubsidiaries_columns.sql", "original_file_path": "macros/get_accountingbooksubsidiaries_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.72864, "supported_languages": null}, "macro.netsuite_source.get_items_columns": {"name": "get_items_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.775667, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_items_columns": {"name": "get_netsuite2_items_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.788585, "supported_languages": null}, "macro.netsuite_source.get_transaction_lines_columns": {"name": "get_transaction_lines_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.790581, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_lines_columns": {"name": "get_netsuite2_transaction_lines_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.792323, "supported_languages": null}, "macro.netsuite_source.get_vendors_columns": {"name": "get_vendors_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.809495, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_vendors_columns": {"name": "get_netsuite2_vendors_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8147662, "supported_languages": null}, "macro.netsuite_source.get_transactionaccountingline_columns": {"name": "get_transactionaccountingline_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transactionaccountingline_columns.sql", "original_file_path": "macros/get_transactionaccountingline_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.816739, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns": {"name": "get_netsuite2_transaction_accounting_lines_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transaction_accounting_lines_columns.sql", "original_file_path": "macros/get_transaction_accounting_lines_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.818471, "supported_languages": null}, "macro.netsuite_source.get_vendorcategory_columns": {"name": "get_vendorcategory_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendorcategory_columns.sql", "original_file_path": "macros/get_vendorcategory_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.819445, "supported_languages": null}, "macro.netsuite_source.get_accounttype_columns": {"name": "get_accounttype_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounttype_columns.sql", "original_file_path": "macros/get_accounttype_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.820956, "supported_languages": null}, "macro.netsuite_source.get_accounting_books_columns": {"name": "get_accounting_books_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.823516, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_books_columns": {"name": "get_netsuite2_accounting_books_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.824904, "supported_languages": null}, "macro.netsuite_source.get_departments_columns": {"name": "get_departments_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.825748, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_departments_columns": {"name": "get_netsuite2_departments_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.826551, "supported_languages": null}, "macro.netsuite_source.get_transactions_columns": {"name": "get_transactions_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.828131, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transactions_columns": {"name": "get_netsuite2_transactions_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.829644, "supported_languages": null}, "macro.netsuite_source.get_entity_columns": {"name": "get_entity_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_entity_columns.sql", "original_file_path": "macros/get_entity_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8337889, "supported_languages": null}, "macro.netsuite_source.get_accounting_periods_columns": {"name": "get_accounting_periods_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.837182, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_periods_columns": {"name": "get_netsuite2_accounting_periods_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.838859, "supported_languages": null}, "macro.netsuite_source.get_consolidated_exchange_rates_columns": {"name": "get_consolidated_exchange_rates_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.840713, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns": {"name": "get_netsuite2_consolidated_exchange_rates_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "unique_id": "macro.netsuite_source.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\": \"accountingbook\", \"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 %}", "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": 1694127477.841826, "supported_languages": null}, "macro.netsuite_source.get_income_accounts_columns": {"name": "get_income_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_income_accounts_columns.sql", "original_file_path": "macros/get_income_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8435662, "supported_languages": null}, "macro.netsuite_source.get_customers_columns": {"name": "get_customers_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.845025, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_customers_columns": {"name": "get_netsuite2_customers_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8465312, "supported_languages": null}, "macro.netsuite_source.get_locations_columns": {"name": "get_locations_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.847595, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_locations_columns": {"name": "get_netsuite2_locations_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8484008, "supported_languages": null}, "macro.netsuite_source.get_entityaddress_columns": {"name": "get_entityaddress_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_entityaddress_columns.sql", "original_file_path": "macros/get_entityaddress_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.850332, "supported_languages": null}, "macro.netsuite_source.get_vendor_types_columns": {"name": "get_vendor_types_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendor_types_columns.sql", "original_file_path": "macros/get_vendor_types_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8512168, "supported_languages": null}, "macro.netsuite_source.get_subsidiaries_columns": {"name": "get_subsidiaries_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.8577821, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_subsidiaries_columns": {"name": "get_netsuite2_subsidiaries_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.858869, "supported_languages": null}, "macro.netsuite_source.get_job_columns": {"name": "get_job_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_job_columns.sql", "original_file_path": "macros/get_job_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.867487, "supported_languages": null}, "macro.netsuite_source.get_currencies_columns": {"name": "get_currencies_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.86896, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_currencies_columns": {"name": "get_netsuite2_currencies_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1694127477.870361, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8707452, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8715909, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8717709, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8719292, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.872092, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.872229, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.872373, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8731031, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.873705, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.874719, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8749492, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.875175, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.875391, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.87561, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8759198, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.876157, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.876462, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.87656, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.876655, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.876749, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8770828, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8777301, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8786612, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.879186, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.87991, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.880357, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.88048, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8806012, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.880717, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8808389, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.883423, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.883577, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.883729, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.883872, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.885469, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.886233, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.886365, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.886613, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.88687, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.886992, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.887106, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.887218, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.887661, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.888184, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.888642, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.88883, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.88903, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8892648, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.890304, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.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", "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": 1694127477.894017, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.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 -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8943691, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.894759, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.896272, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.896828, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.897366, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.897522, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.897674, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8978329, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8979788, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.898122, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.898765, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.8996632, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9003808, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.900555, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9006999, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.900952, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.901143, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9014149, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.901676, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.901778, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.901875, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.902561, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.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 -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.905635, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.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 {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\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 {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9097118, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9110742, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.911529, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.91166, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.911778, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.911884, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.911982, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9122849, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.9123788, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.91247, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.912823, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1694127477.913167, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__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"}, "doc.netsuite_source.account_periods_table": {"name": "account_periods_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.account_periods_table", "block_contents": "Table detailing all accounting periods, including monthly, quarterly and yearly."}, "doc.netsuite_source.accounting_books_table": {"name": "accounting_books_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_books_table", "block_contents": "Table detailing all accounting books set up in Netsuite."}, "doc.netsuite_source.accounts_table": {"name": "accounts_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounts_table", "block_contents": "Table detailing all accounts set up in Netsuite."}, "doc.netsuite_source.classes_table": {"name": "classes_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.classes_table", "block_contents": "Table detailing all classes set up in Netsuite."}, "doc.netsuite_source.consolidated_exchange_rates_table": {"name": "consolidated_exchange_rates_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.consolidated_exchange_rates_table", "block_contents": "Table detailing average, historical and current exchange rates for all accounting periods."}, "doc.netsuite_source.customers_table": {"name": "customers_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.customers_table", "block_contents": "Table detailing all customer information."}, "doc.netsuite_source.currencies_table": {"name": "currencies_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.currencies_table", "block_contents": "Table detailing all currency information."}, "doc.netsuite_source.departments_table": {"name": "departments_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.departments_table", "block_contents": "Table detailing all departments set up in Netsuite."}, "doc.netsuite_source.expense_accounts_table": {"name": "expense_accounts_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.expense_accounts_table", "block_contents": "Table detailing all expense accounts."}, "doc.netsuite_source.income_accounts_table": {"name": "income_accounts_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.income_accounts_table", "block_contents": "Table detailing all income accounts."}, "doc.netsuite_source.items_table": {"name": "items_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.items_table", "block_contents": "Table detailing information about the items created in Netsuite."}, "doc.netsuite_source.locations_table": {"name": "locations_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.locations_table", "block_contents": "Table detailing all locations, including store, warehouse and office locations."}, "doc.netsuite_source.subsidiaries_table": {"name": "subsidiaries_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.subsidiaries_table", "block_contents": "Table detailing all subsidiaries."}, "doc.netsuite_source.transaction_lines_table": {"name": "transaction_lines_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "doc.netsuite_source.transaction_table": {"name": "transaction_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_table", "block_contents": "A table detailing all transactions."}, "doc.netsuite_source.vendor_types_table": {"name": "vendor_types_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_types_table", "block_contents": "A table detailing all the various types of vendors."}, "doc.netsuite_source.vendor_table": {"name": "vendor_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_table", "block_contents": "A table detailing all vendor information."}, "doc.netsuite_source.entities_table": {"name": "entities_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.entities_table", "block_contents": "Table detailing all entities in Netsuite."}, "doc.netsuite_source.jobs_table": {"name": "jobs_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.jobs_table", "block_contents": "Table detailing all jobs."}, "doc.netsuite_source.transaction_accounting_lines_table": {"name": "transaction_accounting_lines_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_accounting_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "doc.netsuite_source.vendor_categories_table": {"name": "vendor_categories_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_categories_table", "block_contents": "A table containing categories and how they map to vendors."}, "doc.netsuite_source.accounting_book_subsidiaries_table": {"name": "accounting_book_subsidiaries_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_book_subsidiaries_table", "block_contents": "A table containing the various account books and the respective subsidiaries."}, "doc.netsuite_source.accounting_period_fiscal_calendars_table": {"name": "accounting_period_fiscal_calendars_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_period_fiscal_calendars_table", "block_contents": "A table containing the accounting fiscal calendar periods."}, "doc.netsuite_source.account_types_table": {"name": "account_types_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.account_types_table", "block_contents": "A table containing the various account types within Netsuite."}, "doc.netsuite_source.entity_address_table": {"name": "entity_address_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.entity_address_table", "block_contents": "A table containing addresses and the various entities which they map."}, "doc.netsuite_source.location_main_address_table": {"name": "location_main_address_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.location_main_address_table", "block_contents": "A table containing the location main addresses."}, "doc.netsuite_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.netsuite_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.netsuite_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source._fivetran_deleted", "block_contents": "Timestamp of when a record was deleted."}, "doc.netsuite_source.vendor_id": {"name": "vendor_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_id", "block_contents": "The unique identifier of the vendor."}, "doc.netsuite_source.company_name": {"name": "company_name", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.company_name", "block_contents": "Name of the company."}, "doc.netsuite_source.create_date_at": {"name": "create_date_at", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.create_date_at", "block_contents": "Timestamp of the record creation."}, "doc.netsuite_source.vendor_category_id": {"name": "vendor_category_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_category_id", "block_contents": "Unique identifier of the vendor category."}, "doc.netsuite_source.accounting_period_id": {"name": "accounting_period_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_period_id", "block_contents": "The accounting period id of the accounting period which the transaction took place in."}, "doc.netsuite_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.created_at", "block_contents": "Timestamp of when the record was created."}, "doc.netsuite_source.currency_id": {"name": "currency_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.currency_id", "block_contents": "The currency id of the currency used within the record."}, "doc.netsuite_source.entity_id": {"name": "entity_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.entity_id", "block_contents": "The entity id of the entity used for the record."}, "doc.netsuite_source.transaction_id": {"name": "transaction_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_id", "block_contents": "The transaction id of referenced for the record."}, "doc.netsuite_source.department_id": {"name": "department_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.department_id", "block_contents": "The unique identifier of the department used for the record."}, "doc.netsuite_source.subsidiary_id": {"name": "subsidiary_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.subsidiary_id", "block_contents": "The unique identifier of the subsidiary used for the record."}, "doc.netsuite_source.location_id": {"name": "location_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.location_id", "block_contents": "The unique identifier of the location used for the record."}, "doc.netsuite_source.class_id": {"name": "class_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.class_id", "block_contents": "The unique identifier of the class used for the record."}, "doc.netsuite_source.item_id": {"name": "item_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.item_id", "block_contents": "The unique identifier of the item used within the record."}, "doc.netsuite_source.fiscal_calendar_id": {"name": "fiscal_calendar_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.fiscal_calendar_id", "block_contents": "Reference to the fiscal calendar used for the record."}, "doc.netsuite_source.main_address_id": {"name": "main_address_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.main_address_id", "block_contents": "Reference to the main address used for the record."}, "doc.netsuite_source.addr1": {"name": "addr1", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addr1", "block_contents": "The associated address 1."}, "doc.netsuite_source.addr2": {"name": "addr2", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addr2", "block_contents": "The associated address 2."}, "doc.netsuite_source.addr3": {"name": "addr3", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addr3", "block_contents": "The associated address 3."}, "doc.netsuite_source.addressee": {"name": "addressee", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addressee", "block_contents": "The individual associated with the address"}, "doc.netsuite_source.full_address": {"name": "full_address", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.full_address", "block_contents": "The full address associated."}, "doc.netsuite_source.city": {"name": "city", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.city", "block_contents": "The associated city."}, "doc.netsuite_source.country": {"name": "country", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.country", "block_contents": "The associated country."}, "doc.netsuite_source.state": {"name": "state", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.state", "block_contents": "The associated state."}, "doc.netsuite_source.nkey": {"name": "nkey", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.nkey", "block_contents": "The associated Netsuite key."}, "doc.netsuite_source.zipcode": {"name": "zipcode", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.zipcode", "block_contents": "The associated zipcode."}, "doc.netsuite_source.customer_id": {"name": "customer_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.customer_id", "block_contents": "Unique identifier of the customer."}, "doc.netsuite_source.accounting_book_id": {"name": "accounting_book_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_book_id", "block_contents": "Unique identifier of the accounting book."}, "doc.netsuite_source.account_type_id": {"name": "account_type_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.account_type_id", "block_contents": "Unique identifier of thea account type."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.netsuite_integration_tests.netsuite2_currency_data": [], "seed.netsuite_integration_tests.netsuite_vendors_data": [], "seed.netsuite_integration_tests.netsuite2_classification_data": [], "seed.netsuite_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_integration_tests.netsuite2_entities_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_integration_tests.netsuite_customers_data": [], "seed.netsuite_integration_tests.netsuite_locations_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_integration_tests.netsuite2_account_data": [], "seed.netsuite_integration_tests.netsuite_items_data": [], "seed.netsuite_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_integration_tests.netsuite_classes_data": [], "seed.netsuite_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_integration_tests.netsuite_departments_data": [], "seed.netsuite_integration_tests.netsuite2_customer_data": [], "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_integration_tests.netsuite2_department_data": [], "seed.netsuite_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_integration_tests.netsuite_currencies_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_integration_tests.netsuite2_job_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_integration_tests.netsuite2_location_data": [], "seed.netsuite_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_integration_tests.netsuite2_item_data": [], "seed.netsuite_integration_tests.netsuite_transactions_data": [], "seed.netsuite_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["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__vendors": ["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__account_types": ["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__accounting_periods": ["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__customers": ["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__accounts": ["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__subsidiaries": ["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__location_main_address": ["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__departments": ["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__consolidated_exchange_rates": ["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__items": ["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__locations": ["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__customers": ["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__consolidated_exchange_rates": ["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__income_accounts": ["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__vendors": ["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__subsidiaries": ["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__items": ["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__departments": ["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__vendor_types": ["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": ["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"], "model.netsuite.netsuite2__transaction_details": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__customers", "model.netsuite.int_netsuite2__locations", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__entities", "model.netsuite_source.stg_netsuite2__items", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__transactions", "model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite.netsuite2__income_statement": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.netsuite2__balance_sheet": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": ["model.netsuite.int_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.int_netsuite2__tran_with_converted_amounts": ["model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.int_netsuite2__tran_lines_w_accounting_period"], "model.netsuite.int_netsuite2__tran_and_reporting_periods": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": ["model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transactions"], "model.netsuite.int_netsuite2__transaction_lines": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__transaction_lines"], "model.netsuite.int_netsuite2__accounts": ["model.netsuite_source.stg_netsuite2__account_types", "model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite.int_netsuite2__customers": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__entity_address"], "model.netsuite.int_netsuite2__accounting_periods": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "model.netsuite_source.stg_netsuite2__accounting_periods"], "model.netsuite.int_netsuite2__consolidated_exchange_rates": [], "model.netsuite.int_netsuite2__locations": ["model.netsuite_source.stg_netsuite2__location_main_address", "model.netsuite_source.stg_netsuite2__locations"], "model.netsuite.netsuite__income_statement": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines"], "model.netsuite.netsuite__transaction_details": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__vendors"], "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": ["model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": ["model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transactions"], "model.netsuite.int_netsuite__transaction_and_reporting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite.int_netsuite__transactions_with_converted_amounts": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite_source.stg_netsuite__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"], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id.c5f0a480aa": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.eaaed6db80": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.50c995eda5": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id.993bc3c9b5": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d": ["model.netsuite.netsuite__income_statement"], "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80": ["model.netsuite.netsuite__income_statement"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641": ["model.netsuite.netsuite__income_statement"], "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3": ["model.netsuite.netsuite__transaction_details"], "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58": ["model.netsuite.netsuite__transaction_details"], "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096": ["model.netsuite.netsuite__transaction_details"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400": ["model.netsuite.netsuite__transaction_details"], "seed.netsuite_integration_tests.netsuite_accounts_data": [], "model.netsuite.netsuite__balance_sheet": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e": ["model.netsuite.netsuite__balance_sheet"], "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32": ["model.netsuite.netsuite__balance_sheet"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da": ["model.netsuite.netsuite__balance_sheet"], "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_integration_tests.netsuite2_currency_data": [], "seed.netsuite_integration_tests.netsuite_vendors_data": [], "seed.netsuite_integration_tests.netsuite2_classification_data": [], "seed.netsuite_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_integration_tests.netsuite2_entities_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_integration_tests.netsuite_customers_data": [], "seed.netsuite_integration_tests.netsuite_locations_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_integration_tests.netsuite2_account_data": [], "seed.netsuite_integration_tests.netsuite_items_data": [], "seed.netsuite_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_integration_tests.netsuite_classes_data": [], "seed.netsuite_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_integration_tests.netsuite_departments_data": [], "seed.netsuite_integration_tests.netsuite2_customer_data": [], "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_integration_tests.netsuite2_department_data": [], "seed.netsuite_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_integration_tests.netsuite_currencies_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_integration_tests.netsuite2_job_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_integration_tests.netsuite2_location_data": [], "seed.netsuite_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_integration_tests.netsuite2_item_data": [], "seed.netsuite_integration_tests.netsuite_transactions_data": [], "seed.netsuite_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__accounts", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_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": ["model.netsuite.int_netsuite2__accounting_periods", "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": ["model.netsuite.int_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": ["model.netsuite.int_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": ["model.netsuite.int_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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details", "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.int_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__location_main_address": ["model.netsuite.int_netsuite2__locations"], "model.netsuite_source.stg_netsuite2__vendor_categories": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__transaction_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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__locations", "model.netsuite.netsuite2__income_statement", "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__transactions_tmp": ["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__account_types_tmp": ["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__jobs_tmp": ["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__accounts_tmp": ["model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["model.netsuite_source.stg_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["model.netsuite_source.stg_netsuite2__entities"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["model.netsuite_source.stg_netsuite2__currencies"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite_source.stg_netsuite2__items_tmp": ["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_period_fiscal_cal_tmp": ["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__accounting_book_subsidiaries_tmp": ["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__location_main_address_tmp": ["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__departments_tmp": ["model.netsuite_source.stg_netsuite2__departments"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["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_netsuite__transactions": ["model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "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": ["model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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_books_tmp": ["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__transaction_lines_tmp": ["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__accounts_tmp": ["model.netsuite_source.stg_netsuite__accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["model.netsuite_source.stg_netsuite__departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["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__vendors_tmp": ["model.netsuite_source.stg_netsuite__vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["model.netsuite_source.stg_netsuite__locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["model.netsuite_source.stg_netsuite__items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["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__classes_tmp": ["model.netsuite_source.stg_netsuite__classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["model.netsuite_source.stg_netsuite__expense_accounts"], "model.netsuite.netsuite2__transaction_details": ["test.netsuite.accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.50c995eda5", "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id.993bc3c9b5", "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79", "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36"], "model.netsuite.netsuite2__income_statement": ["test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.eaaed6db80", "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef", "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706"], "model.netsuite.netsuite2__balance_sheet": ["test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id.c5f0a480aa", "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1", "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9"], "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": ["model.netsuite.int_netsuite2__tran_with_converted_amounts"], "model.netsuite.int_netsuite2__tran_with_converted_amounts": ["model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__tran_and_reporting_periods": ["model.netsuite.int_netsuite2__tran_with_converted_amounts"], "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": ["model.netsuite.int_netsuite2__tran_with_converted_amounts"], "model.netsuite.int_netsuite2__transaction_lines": ["model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__accounts": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__customers": ["model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__accounting_periods": ["model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__consolidated_exchange_rates": [], "model.netsuite.int_netsuite2__locations": ["model.netsuite.netsuite2__transaction_details"], "model.netsuite.netsuite__income_statement": ["test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641", "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d", "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80"], "model.netsuite.netsuite__transaction_details": ["test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096", "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400", "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58", "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3"], "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": ["model.netsuite.int_netsuite__transactions_with_converted_amounts"], "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": ["model.netsuite.int_netsuite__transactions_with_converted_amounts"], "model.netsuite.int_netsuite__transaction_and_reporting_periods": ["model.netsuite.int_netsuite__transactions_with_converted_amounts"], "model.netsuite.int_netsuite__transactions_with_converted_amounts": ["model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details"], "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": [], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1": [], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id.c5f0a480aa": [], "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef": [], "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.eaaed6db80": [], "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36": [], "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79": [], "test.netsuite.accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.50c995eda5": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id.993bc3c9b5": [], "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d": [], "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641": [], "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3": [], "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58": [], "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400": [], "seed.netsuite_integration_tests.netsuite_accounts_data": [], "model.netsuite.netsuite__balance_sheet": ["test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da", "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e", "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32"], "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e": [], "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da": [], "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"]}, "group_map": {}, "semantic_models": {}} +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v10.json", "dbt_version": "1.6.6", "generated_at": "2023-11-09T21:06:30.125805Z", "invocation_id": "190dc263-6a28-4c01-81fb-76da7503a406", "env": {}, "project_name": "netsuite_integration_tests", "project_id": "1288e68047c03dc418c42073e1469b09", "user_id": "8268eefe-e8f7-472e-ab2a-a92f0135d76d", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.netsuite_integration_tests.netsuite2_currency_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_currency_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_currency_data.csv", "original_file_path": "seeds/netsuite2_currency_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_currency_data", "fqn": ["netsuite_integration_tests", "netsuite2_currency_data"], "alias": "netsuite2_currency_data", "checksum": {"name": "sha256", "checksum": "860ccbec95ff9c17e8e40db2c32e28ab56f2ef18f6af775bc982fc5494aae23c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.875242, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_currency_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_vendors_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_vendors_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_vendors_data.csv", "original_file_path": "seeds/netsuite_vendors_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_vendors_data", "fqn": ["netsuite_integration_tests", "netsuite_vendors_data"], "alias": "netsuite_vendors_data", "checksum": {"name": "sha256", "checksum": "f050ea1d5fa346fcefbe9a5792dfbe9f5aabbec17a359ab2e497be7b3e888e2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.881807, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_vendors_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_classification_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_classification_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_classification_data.csv", "original_file_path": "seeds/netsuite2_classification_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_classification_data", "fqn": ["netsuite_integration_tests", "netsuite2_classification_data"], "alias": "netsuite2_classification_data", "checksum": {"name": "sha256", "checksum": "800dc93b65435dd17dbe1f668890a317bce221193a1ca52d6075c5ab8504e29c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.883189, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_classification_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_accounting_books_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_accounting_books_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_accounting_books_data.csv", "original_file_path": "seeds/netsuite_accounting_books_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_books_data", "fqn": ["netsuite_integration_tests", "netsuite_accounting_books_data"], "alias": "netsuite_accounting_books_data", "checksum": {"name": "sha256", "checksum": "45b73583ed0a1425f131de59b6a17b997caec17d9b0884947f27008ae81c1684"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.884546, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounting_books_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_entities_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_entities_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_entities_data.csv", "original_file_path": "seeds/netsuite2_entities_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_entities_data", "fqn": ["netsuite_integration_tests", "netsuite2_entities_data"], "alias": "netsuite2_entities_data", "checksum": {"name": "sha256", "checksum": "e28458219e88aecec3f237ff9c58941d13c0e40c478fec9e8727fbb3d9d244c8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.886016, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_entities_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_vendor_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_vendor_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_vendor_data.csv", "original_file_path": "seeds/netsuite2_vendor_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_data", "fqn": ["netsuite_integration_tests", "netsuite2_vendor_data"], "alias": "netsuite2_vendor_data", "checksum": {"name": "sha256", "checksum": "f1f8f8762dd6b7192e2273f12ee86f43eb06933a2055da91d37c82f0ddbec0b8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.887339, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_vendor_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_consolidated_exchange_rates_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_consolidated_exchange_rates_data.csv", "original_file_path": "seeds/netsuite_consolidated_exchange_rates_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data", "fqn": ["netsuite_integration_tests", "netsuite_consolidated_exchange_rates_data"], "alias": "netsuite_consolidated_exchange_rates_data", "checksum": {"name": "sha256", "checksum": "b8719124e41745363f91f996b99812a9e6c98306ef24034c5efb12b64600a496"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.888669, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_consolidated_exchange_rates_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_customers_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_customers_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_customers_data.csv", "original_file_path": "seeds/netsuite_customers_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_customers_data", "fqn": ["netsuite_integration_tests", "netsuite_customers_data"], "alias": "netsuite_customers_data", "checksum": {"name": "sha256", "checksum": "e3ce06d6edaeb9f777c340a597d8de7cfb2d3423a20a2421eae4c86264a9c93a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.889984, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_customers_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_locations_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_locations_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_locations_data.csv", "original_file_path": "seeds/netsuite_locations_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_locations_data", "fqn": ["netsuite_integration_tests", "netsuite_locations_data"], "alias": "netsuite_locations_data", "checksum": {"name": "sha256", "checksum": "8a71a79adb44cc02707a75ee10a85f03b472324a894ddc32716eeea7d533bc2f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.891437, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_locations_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_transaction_line_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_transaction_line_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_transaction_line_data.csv", "original_file_path": "seeds/netsuite2_transaction_line_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_line_data", "fqn": ["netsuite_integration_tests", "netsuite2_transaction_line_data"], "alias": "netsuite2_transaction_line_data", "checksum": {"name": "sha256", "checksum": "746773ecc92c2e3e1113ebf7d00fd1a33723016cd3f221fca37fa938315ca5b1"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.892746, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_transaction_line_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_account_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_account_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_account_data.csv", "original_file_path": "seeds/netsuite2_account_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_account_data", "fqn": ["netsuite_integration_tests", "netsuite2_account_data"], "alias": "netsuite2_account_data", "checksum": {"name": "sha256", "checksum": "b214919e9de2c28ca43bfc4039758d228990317fc73fc88db7c3f01924b4fb49"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp", "eliminate": "varchar"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"eliminate": "{{ 'string' if target.type in ('bigquery', 'spark', 'databricks') else 'varchar' }}"}}, "created_at": 1699563834.894083, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_account_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_items_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_items_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_items_data.csv", "original_file_path": "seeds/netsuite_items_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_items_data", "fqn": ["netsuite_integration_tests", "netsuite_items_data"], "alias": "netsuite_items_data", "checksum": {"name": "sha256", "checksum": "567fc2b4c8e46962f9297095017fa529544feafed31503e9fc3ed51bf60b866d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.895581, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_items_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_subsidiary_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_subsidiary_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_subsidiary_data.csv", "original_file_path": "seeds/netsuite2_subsidiary_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_subsidiary_data", "fqn": ["netsuite_integration_tests", "netsuite2_subsidiary_data"], "alias": "netsuite2_subsidiary_data", "checksum": {"name": "sha256", "checksum": "ab5bdff19af5d7a5f923820106bd9aa7fc321d3a1b1397ab2ad33f8d1fce3991"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.8968801, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_subsidiary_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_account_type_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_account_type_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_account_type_data.csv", "original_file_path": "seeds/netsuite2_account_type_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_account_type_data", "fqn": ["netsuite_integration_tests", "netsuite2_account_type_data"], "alias": "netsuite2_account_type_data", "checksum": {"name": "sha256", "checksum": "a25b940f65942b256bca8c5ac0c5d4f420a9b1e2d6330bd1102da3e8fa664c7f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.898182, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_account_type_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_period_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_accounting_period_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_period_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_period_data"], "alias": "netsuite2_accounting_period_data", "checksum": {"name": "sha256", "checksum": "97e406f50a1b4132adaef053a22a864d739a127589502896c47adbb034b8355e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.899483, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_period_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_accounting_period_fiscal_cal_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_period_fiscal_cal_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_fiscal_cal_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_period_fiscal_cal_data"], "alias": "netsuite2_accounting_period_fiscal_cal_data", "checksum": {"name": "sha256", "checksum": "ff3ab48ac65713c861da7a5542f14db75c64c4ad7ae4efc8acb2241c10b127c7"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.901223, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_period_fiscal_cal_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_classes_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_classes_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_classes_data.csv", "original_file_path": "seeds/netsuite_classes_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_classes_data", "fqn": ["netsuite_integration_tests", "netsuite_classes_data"], "alias": "netsuite_classes_data", "checksum": {"name": "sha256", "checksum": "18e8a63665925edfacbeaa443c7f6632c4489bd521df77d945ee657d398588e3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.902529, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_classes_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_entity_address_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_entity_address_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_entity_address_data.csv", "original_file_path": "seeds/netsuite2_entity_address_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_entity_address_data", "fqn": ["netsuite_integration_tests", "netsuite2_entity_address_data"], "alias": "netsuite2_entity_address_data", "checksum": {"name": "sha256", "checksum": "194e01a215739408a796ec2d819da0bc650c860e052e2cddf6695c3faab3b059"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.903826, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_entity_address_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_departments_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_departments_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_departments_data.csv", "original_file_path": "seeds/netsuite_departments_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_departments_data", "fqn": ["netsuite_integration_tests", "netsuite_departments_data"], "alias": "netsuite_departments_data", "checksum": {"name": "sha256", "checksum": "9060203f11419c602daf8afc578035d29ef612e1e868b12fa22eaf7b37942607"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9052749, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_departments_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_customer_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_customer_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_customer_data.csv", "original_file_path": "seeds/netsuite2_customer_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_customer_data", "fqn": ["netsuite_integration_tests", "netsuite2_customer_data"], "alias": "netsuite2_customer_data", "checksum": {"name": "sha256", "checksum": "5500a2147bb74338ce1aa8bc059d0f3cae74cdfcf4d0d68b49121540b5ccb573"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.906572, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_customer_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_tran_acct_line_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_tran_acct_line_data.csv", "original_file_path": "seeds/netsuite2_tran_acct_line_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data", "fqn": ["netsuite_integration_tests", "netsuite2_tran_acct_line_data"], "alias": "netsuite2_tran_acct_line_data", "checksum": {"name": "sha256", "checksum": "c6e72ec64e0179be9c3f3fb6435a828570cd1cb9ba2092ce78b6a4900bc02ddb"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.90787, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_tran_acct_line_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_department_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_department_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_department_data.csv", "original_file_path": "seeds/netsuite2_department_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_department_data", "fqn": ["netsuite_integration_tests", "netsuite2_department_data"], "alias": "netsuite2_department_data", "checksum": {"name": "sha256", "checksum": "6570dc2a4efbac97f87551588b34558d6c5c5b8e071b3cfea59bc9e13a0b7b4a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9091682, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_department_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_expense_accounts_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_expense_accounts_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_expense_accounts_data.csv", "original_file_path": "seeds/netsuite_expense_accounts_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_expense_accounts_data", "fqn": ["netsuite_integration_tests", "netsuite_expense_accounts_data"], "alias": "netsuite_expense_accounts_data", "checksum": {"name": "sha256", "checksum": "983ef804359afb2c0f7db8c3bb32d5eecdec8c0d9fbf502360944877dc212f9c"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.910582, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_expense_accounts_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_currencies_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_currencies_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_currencies_data.csv", "original_file_path": "seeds/netsuite_currencies_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_currencies_data", "fqn": ["netsuite_integration_tests", "netsuite_currencies_data"], "alias": "netsuite_currencies_data", "checksum": {"name": "sha256", "checksum": "f98ba1751b715296956912fc4c2b43f58875c56740e829c045aefe1172cb2232"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9118981, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_currencies_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_accounting_book_sub_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_book_sub_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_sub_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_book_sub_data"], "alias": "netsuite2_accounting_book_sub_data", "checksum": {"name": "sha256", "checksum": "e95506b5ada820d0a9a79e7759d749a1512beaa8922c3d6e78c105f9029f7992"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9132009, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_book_sub_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_accounts_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_accounts_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_accounts_data.csv", "original_file_path": "seeds/netsuite_accounts_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_accounts_data", "fqn": ["netsuite_integration_tests", "netsuite_accounts_data"], "alias": "netsuite_accounts_data", "checksum": {"name": "sha256", "checksum": "ad07198da0e2a58c008a066867fb5264f590885a6c2ad402d5cd9b82cdea1421"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.914634, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounts_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_vendor_category_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_vendor_category_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_vendor_category_data.csv", "original_file_path": "seeds/netsuite2_vendor_category_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_category_data", "fqn": ["netsuite_integration_tests", "netsuite2_vendor_category_data"], "alias": "netsuite2_vendor_category_data", "checksum": {"name": "sha256", "checksum": "498453adb748d03d07147625b2ef67966f7200523eef6d824ce8787212159bf8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9159281, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_vendor_category_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_accounting_periods_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_accounting_periods_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_accounting_periods_data.csv", "original_file_path": "seeds/netsuite_accounting_periods_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_periods_data", "fqn": ["netsuite_integration_tests", "netsuite_accounting_periods_data"], "alias": "netsuite_accounting_periods_data", "checksum": {"name": "sha256", "checksum": "673c2f4c76e4cb8bbccecc7e30c0056163d39f53174013f0460a2e4e5efe6e33"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9172218, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounting_periods_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_subsidiaries_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_subsidiaries_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_subsidiaries_data.csv", "original_file_path": "seeds/netsuite_subsidiaries_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_subsidiaries_data", "fqn": ["netsuite_integration_tests", "netsuite_subsidiaries_data"], "alias": "netsuite_subsidiaries_data", "checksum": {"name": "sha256", "checksum": "4dd2e8b192c4c052a847d6791b5a32da6968a3234d48b85a37ae20f7ee9445de"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.918516, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_subsidiaries_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_job_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_job_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_job_data.csv", "original_file_path": "seeds/netsuite2_job_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_job_data", "fqn": ["netsuite_integration_tests", "netsuite2_job_data"], "alias": "netsuite2_job_data", "checksum": {"name": "sha256", "checksum": "f1428503a8ec37e7e3013f3a6db96d4b6841ddec436575733475a07c583a5b65"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.919934, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_job_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_transaction_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_transaction_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_transaction_data.csv", "original_file_path": "seeds/netsuite2_transaction_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_data", "fqn": ["netsuite_integration_tests", "netsuite2_transaction_data"], "alias": "netsuite2_transaction_data", "checksum": {"name": "sha256", "checksum": "16b52e72a514adb263e4e26594326996ab0c1089e576155a4f429975b1d54db0"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.921226, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_transaction_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_location_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_location_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_location_data.csv", "original_file_path": "seeds/netsuite2_location_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_location_data", "fqn": ["netsuite_integration_tests", "netsuite2_location_data"], "alias": "netsuite2_location_data", "checksum": {"name": "sha256", "checksum": "a3ce64b239774b83f9226b8e1f8504147dd5f890a86ab80fda41c0376a6e2d19"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.922511, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_location_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_income_accounts_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_income_accounts_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_income_accounts_data.csv", "original_file_path": "seeds/netsuite_income_accounts_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_income_accounts_data", "fqn": ["netsuite_integration_tests", "netsuite_income_accounts_data"], "alias": "netsuite_income_accounts_data", "checksum": {"name": "sha256", "checksum": "53a81321736b4a42663e253050539eb48b0d179847e23f161927d29c4cbf1367"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.923947, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_income_accounts_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_consolidated_exchange_rate_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_consolidated_exchange_rate_data.csv", "original_file_path": "seeds/netsuite2_consolidated_exchange_rate_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data", "fqn": ["netsuite_integration_tests", "netsuite2_consolidated_exchange_rate_data"], "alias": "netsuite2_consolidated_exchange_rate_data", "checksum": {"name": "sha256", "checksum": "a9d4cb8df25e71cf9059317fe85779bee79f7cbf20b56474aea856f22e6911dc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.9252422, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_consolidated_exchange_rate_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_accounting_book_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_accounting_book_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_accounting_book_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_data", "fqn": ["netsuite_integration_tests", "netsuite2_accounting_book_data"], "alias": "netsuite2_accounting_book_data", "checksum": {"name": "sha256", "checksum": "e5762b59dceb08e4a5170f2ff5413591cfca97f2a8a9a5080bf96860cf276566"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.926542, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_book_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_location_main_address_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_location_main_address_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_location_main_address_data.csv", "original_file_path": "seeds/netsuite2_location_main_address_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_location_main_address_data", "fqn": ["netsuite_integration_tests", "netsuite2_location_main_address_data"], "alias": "netsuite2_location_main_address_data", "checksum": {"name": "sha256", "checksum": "605372cb4ea25cff3ec9f9c80374d24c71d6848ff3dbda939928851568a7311d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.927841, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_location_main_address_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_vendor_types_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_vendor_types_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_vendor_types_data.csv", "original_file_path": "seeds/netsuite_vendor_types_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_vendor_types_data", "fqn": ["netsuite_integration_tests", "netsuite_vendor_types_data"], "alias": "netsuite_vendor_types_data", "checksum": {"name": "sha256", "checksum": "2111fb5a226e9e73c187a1a1a13caa0c2d3b54bb2eedfe3287f636c049c72b64"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.929259, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_vendor_types_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite2_item_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite2_item_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite2_item_data.csv", "original_file_path": "seeds/netsuite2_item_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite2_item_data", "fqn": ["netsuite_integration_tests", "netsuite2_item_data"], "alias": "netsuite2_item_data", "checksum": {"name": "sha256", "checksum": "73809b7847e14ec59fa08705c6ba1ee6be142717f9bcbe2dde9eeb5b1c14a65f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.930562, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_item_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_transactions_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_transactions_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_transactions_data.csv", "original_file_path": "seeds/netsuite_transactions_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_transactions_data", "fqn": ["netsuite_integration_tests", "netsuite_transactions_data"], "alias": "netsuite_transactions_data", "checksum": {"name": "sha256", "checksum": "c1d88d96de5d5e6ed310a6b008df7390a2aaf7b0d857668e0dfed259f0c704ed"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.931862, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_transactions_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "seed.netsuite_integration_tests.netsuite_transaction_lines_data": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "netsuite_transaction_lines_data", "resource_type": "seed", "package_name": "netsuite_integration_tests", "path": "netsuite_transaction_lines_data.csv", "original_file_path": "seeds/netsuite_transaction_lines_data.csv", "unique_id": "seed.netsuite_integration_tests.netsuite_transaction_lines_data", "fqn": ["netsuite_integration_tests", "netsuite_transaction_lines_data"], "alias": "netsuite_transaction_lines_data", "checksum": {"name": "sha256", "checksum": "6786bdf4b6e00d6243008c46d0bb69a21158ff27265690503aaa9d8b6faa01d2"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp", "startdate": "timestamp", "starting": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_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", "startdate": "timestamp", "starting": "timestamp"}}, "created_at": 1699563834.933304, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_transaction_lines_data\"", "raw_code": "", "root_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "depends_on": {"macros": []}}, "model.netsuite_source.stg_netsuite2__transactions": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__transactions", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__transactions.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transactions.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transactions", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transactions"], "alias": "stg_netsuite2__transactions", "checksum": {"name": "sha256", "checksum": "2c4c633021a63c8a1308b3789d56b708af5b5717e884351c71887231e0c90bcc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_number": {"name": "transaction_number", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the transaction is a posting event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_intercompany_adjustment": {"name": "is_intercompany_adjustment", "description": "Boolean indicating if the transaction is an intercompany adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_reversal": {"name": "is_reversal", "description": "Boolean indicating if the transaction is a reversal entry.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.083009, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__transactions_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__transactions_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transactions.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__jobs": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__jobs", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__jobs.sql", "original_file_path": "models/netsuite2/stg_netsuite2__jobs.sql", "unique_id": "model.netsuite_source.stg_netsuite2__jobs", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__jobs"], "alias": "stg_netsuite2__jobs", "checksum": {"name": "sha256", "checksum": "5413726d3e8bd8107224099901c6962f85073cde02dd673e1ac74e8e9e24abf1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all jobs.", "columns": {"job_id": {"name": "job_id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_external_id": {"name": "job_external_id", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "Reference the the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Default billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.077579, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__jobs\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_jobs', true))) }}\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", "refs": [{"name": "stg_netsuite2__jobs_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__jobs_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_job_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__jobs.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendors": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__vendors", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__vendors.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendors.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendors", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendors"], "alias": "stg_netsuite2__vendors", "checksum": {"name": "sha256", "checksum": "57d89d251774cb5fc016b2e7e5b18dbcc0bdf0a0a444538ae0609a4288e1b52a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.083817, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_netsuite2__vendors_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__vendors_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_vendors_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendors.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__classes": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__classes", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__classes.sql", "original_file_path": "models/netsuite2/stg_netsuite2__classes.sql", "unique_id": "model.netsuite_source.stg_netsuite2__classes", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__classes"], "alias": "stg_netsuite2__classes", "checksum": {"name": "sha256", "checksum": "a9e7992979bc1cd28fc5146856ab851659bc72d2395d23d2823c7becea767a15"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_external_id": {"name": "class_external_id", "description": "Reference to the external class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the class is active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.0691562, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__classes_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__classes_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__classes.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__account_types": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__account_types", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__account_types.sql", "original_file_path": "models/netsuite2/stg_netsuite2__account_types.sql", "unique_id": "model.netsuite_source.stg_netsuite2__account_types", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__account_types"], "alias": "stg_netsuite2__account_types", "checksum": {"name": "sha256", "checksum": "6c39be806ec5db5f544422d953df9e56363bef7f19194b82cd34abe8c17f4bef"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Boolean indicating if the account type is a balance sheet account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Boolean indicating if the account type is leftside.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.0623481, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__account_types_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__account_types_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_accounttype_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__account_types.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entities": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__entities", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__entities.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entities.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entities", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entities"], "alias": "stg_netsuite2__entities", "checksum": {"name": "sha256", "checksum": "0392c9e7b4655f0e6713bf4c704ad432ad31a64dc0cd576c25ce04587ab4cb6f"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_name": {"name": "entity_name", "description": "The entity name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating whether the entity is a person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_id": {"name": "job_id", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_type": {"name": "entity_type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.07393, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__entities_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__entities_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_entity_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entities_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entities.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_periods", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_periods.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_periods"], "alias": "stg_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "48e2a5453338c86df098bac458a583947b5e1975f270720c8cf1d5bdad319934"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_quarter": {"name": "is_quarter", "description": "Boolean indicating if the accounting period is the initial quarter.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_year": {"name": "is_year", "description": "Boolean indicating if the accounting period is the initial period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Boolean indicating if the accounting period is an adjustment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the accounting period is posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_all_locked": {"name": "is_all_locked", "description": "Boolean indicating if all the accounting periods are locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_ar_locked": {"name": "is_ar_locked", "description": "Boolean indicating if the ar accounting period is locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_ap_locked": {"name": "is_ap_locked", "description": "Boolean indicating if the ap accounting period is locked.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.066504, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__accounting_periods_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_periods_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_periods.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_period_fiscal_cal"], "alias": "stg_netsuite2__accounting_period_fiscal_cal", "checksum": {"name": "sha256", "checksum": "08f29429258fe924b0103d832c5b2ee93ef0c822941114b0a5c3dda3b2b720c8"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.064866, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__customers": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__customers", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__customers.sql", "original_file_path": "models/netsuite2/stg_netsuite2__customers.sql", "unique_id": "model.netsuite_source.stg_netsuite2__customers", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__customers"], "alias": "stg_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "d6e64bbecd619e00c87215b8a34f976193ccf6ef747dcea102f8889d0abe1f36"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating if the customer is an individual person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Last name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Customers email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_billing_address_id": {"name": "default_billing_address_id", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_shipping_address_id": {"name": "default_shipping_address_id", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "receivables_account_id": {"name": "receivables_account_id", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.072304, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__customers_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__customers_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__customers.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_book_subsidiaries"], "alias": "stg_netsuite2__accounting_book_subsidiaries", "checksum": {"name": "sha256", "checksum": "0d2bfa2a3d3a82475bddf34cc2377c56d9c82fb8b0139105990b8667feabc976"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.062877, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounts", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounts"], "alias": "stg_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "af13b25d899db3b922c4edc903b4c1a44cbc7face31b54f31261144bcd9faa89"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_external_id": {"name": "account_external_id", "description": "Reference to the external account,", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Netsuite generate account number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Reference to the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "special_account_type_id": {"name": "special_account_type_id", "description": "Special account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_description": {"name": "account_description", "description": "Description of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferral_account_id": {"name": "deferral_account_id", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the account is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_summary": {"name": "is_summary", "description": "Boolean indicating if the account is a summary account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_eliminate": {"name": "is_eliminate", "description": "Indicates this is an intercompany account used only to record transactions between subsidiaries. Amounts posted to intercompany accounts are eliminated when you run the intercompany elimination process at the end of an accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.068512, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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 sspecacct as special_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 eliminate = 'T' as is_eliminate,\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", "refs": [{"name": "stg_netsuite2__accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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 sspecacct\n \n as \n \n sspecacct\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 eliminate\n \n as \n \n eliminate\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 sspecacct as special_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 eliminate = 'T' as is_eliminate,\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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__transaction_lines", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_lines.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_lines"], "alias": "stg_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "9c9f517e165640453fdeebd65995df4ef52c492b4032bb08a85a0f793977065b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_number": {"name": "transaction_line_number", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the transaction line is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_billable": {"name": "is_billable", "description": "Boolean indicating if the transaction line is billable.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_cleared": {"name": "is_cleared", "description": "Boolean indicating if the transaction line is cleared.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.081905, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__transaction_lines_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__transaction_lines_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__subsidiaries", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__subsidiaries.sql", "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__subsidiaries"], "alias": "stg_netsuite2__subsidiaries", "checksum": {"name": "sha256", "checksum": "7651cae15a0bed742d34228e3c04bd9df698fcf22f7a76a2c1663eb7aa058b24"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.0790458, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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 currency as currency_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", "refs": [{"name": "stg_netsuite2__subsidiaries_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__subsidiaries.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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 currency\n \n as \n \n currency\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 currency as currency_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entity_address": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__entity_address", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__entity_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entity_address.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entity_address", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entity_address"], "alias": "stg_netsuite2__entity_address", "checksum": {"name": "sha256", "checksum": "d27f51d927c47da86ddb71b2c791c8d099f62b1f344e7424b45da278eeab988a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.075167, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__entity_address_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__entity_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_entityaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entity_address_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entity_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__location_main_address": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__location_main_address", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__location_main_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__location_main_address.sql", "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__location_main_address"], "alias": "stg_netsuite2__location_main_address", "checksum": {"name": "sha256", "checksum": "6aa954c3810aabd58d6ebd5d3a40123da29a14afb1e2a4806204d7420af4073d"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.078069, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__location_main_address_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__location_main_address_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__location_main_address.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__vendor_categories", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__vendor_categories.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendor_categories.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendor_categories"], "alias": "stg_netsuite2__vendor_categories", "checksum": {"name": "sha256", "checksum": "649b796efa717393f18416d5291c9953e99558d811ae957eff8ca5c5bb387b95"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.083467, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__vendor_categories_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__vendor_categories_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_vendorcategory_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendor_categories.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__departments": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__departments", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__departments.sql", "original_file_path": "models/netsuite2/stg_netsuite2__departments.sql", "unique_id": "model.netsuite_source.stg_netsuite2__departments", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__departments"], "alias": "stg_netsuite2__departments", "checksum": {"name": "sha256", "checksum": "b39341b1d90d2d27d63e99103a0cb846b40e673accc25b41ffac244ce1d594d5"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the department is active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.072716, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__departments_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__departments_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__departments.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_accounting_lines"], "alias": "stg_netsuite2__transaction_accounting_lines", "checksum": {"name": "sha256", "checksum": "90279461e66f275c5cec764afe306fbd000435ce5506dbd686082b0ae8897164"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "net_amount": {"name": "net_amount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the entry is posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "credit_amount": {"name": "credit_amount", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "debit_amount": {"name": "debit_amount", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_amount": {"name": "paid_amount", "description": "Total amount paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "unpaid_amount": {"name": "unpaid_amount", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.0803, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__transaction_accounting_lines_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__consolidated_exchange_rates"], "alias": "stg_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "26498ef3b73e8271b2ba0bb83db6a300ff9ece9db3c8b2726cd3a13455079dce"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "to_currency_id": {"name": "to_currency_id", "description": "The currency id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.069928, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_exchange_rate', true))) }}\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 accountingbook as accounting_book_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", "refs": [{"name": "stg_netsuite2__consolidated_exchange_rates_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__consolidated_exchange_rates_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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 accountingbook\n \n as \n \n accountingbook\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 accountingbook as accounting_book_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_books": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_books", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_books.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_books.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_books"], "alias": "stg_netsuite2__accounting_books", "checksum": {"name": "sha256", "checksum": "492c26cdf4e2287d7bf2860b161174c045cc4292eddfc2e5dc124c95ecd22f87"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "base_book_id": {"name": "base_book_id", "description": "Reference to the base book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_period_id": {"name": "effective_period_id", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_consolidated": {"name": "is_consolidated", "description": "Boolean indicating if the accounting book is a consolidated entry.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating if the accounting book is a primary entry.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.0644732, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__accounting_books_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_books_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_books.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__items": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__items", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__items.sql", "original_file_path": "models/netsuite2/stg_netsuite2__items.sql", "unique_id": "model.netsuite_source.stg_netsuite2__items", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__items"], "alias": "stg_netsuite2__items", "checksum": {"name": "sha256", "checksum": "0b961f57671b5e65d221a49373c213636f2b29af46fbebf97c97b7b3681c40cc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "Item type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gain_loss_account_id": {"name": "gain_loss_account_id", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interco_expense_account_id": {"name": "interco_expense_account_id", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "interco_income_account_id": {"name": "interco_income_account_id", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferred_expense_account_id": {"name": "deferred_expense_account_id", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferred_revenue_account_id": {"name": "deferred_revenue_account_id", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.076776, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "refs": [{"name": "stg_netsuite2__items_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__items_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_items_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__items_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__items.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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\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 where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__currencies": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__currencies", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__currencies.sql", "original_file_path": "models/netsuite2/stg_netsuite2__currencies.sql", "unique_id": "model.netsuite_source.stg_netsuite2__currencies", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__currencies"], "alias": "stg_netsuite2__currencies", "checksum": {"name": "sha256", "checksum": "9b9c0d0d1eb6893da99d35ceb10e45ee88de6f617e17e1b806954001368e7102"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.070272, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__currencies_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__currencies_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__currencies.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__locations": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__locations", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/stg_netsuite2__locations.sql", "original_file_path": "models/netsuite2/stg_netsuite2__locations.sql", "unique_id": "model.netsuite_source.stg_netsuite2__locations", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__locations"], "alias": "stg_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "7119a0aab155a59c51c8cfe2acfdbe0936d7db06deacda06985c0cc94078c378"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563836.078593, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite2__locations_tmp", "package": null, "version": null}, {"name": "stg_netsuite2__locations_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__locations.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__subsidiaries_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__subsidiaries_tmp"], "alias": "stg_netsuite2__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "eb36dcfa2fc2c9804ee7c9f8a6d816e627a6a93317bf3c18b8fae79a401b5bc4"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.3379872, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "subsidiary"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.subsidiary"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_subsidiary_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__transactions_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transactions_tmp"], "alias": "stg_netsuite2__transactions_tmp", "checksum": {"name": "sha256", "checksum": "0a53a3346ecc7bf2adf63219afd894ce3fcebbb6be17dd14b59e375ea8f17a08"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.341706, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "transaction"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__entity_address_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entity_address_tmp"], "alias": "stg_netsuite2__entity_address_tmp", "checksum": {"name": "sha256", "checksum": "d97182c6accf821ebe81e433983fa3d4c38276c248e3dc73dbbdd61bf81567ad"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.345442, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "entity_address"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity_address"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_entity_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__account_types_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__account_types_tmp"], "alias": "stg_netsuite2__account_types_tmp", "checksum": {"name": "sha256", "checksum": "dac8de5c5ba05927d82e199a2740e5b79c242f09efad6d7fcd964b2de26b2167"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.349241, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "account_type"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account_type"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_account_type_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_periods_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_periods_tmp"], "alias": "stg_netsuite2__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "887a6933900a22d76b1b92d7193cb2baae1b34c60fab415815fe38a5ce1422a0"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.3535, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "accounting_period"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_period_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__jobs_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__jobs_tmp"], "alias": "stg_netsuite2__jobs_tmp", "checksum": {"name": "sha256", "checksum": "64ba1230db909c3a4ef51123afdfb7b0709becce49a2702ddc586d736b5aa68b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.3572302, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__jobs_tmp\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_jobs', true))) }}\n\nselect * \nfrom {{ var('netsuite2_jobs') }}", "language": "sql", "refs": [], "sources": [["netsuite2", "job"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.job"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_job_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__transaction_lines_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_lines_tmp"], "alias": "stg_netsuite2__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "ea04f3ee54828be9da6e66a5381b4c7d8dc359754f456e5eba7a17683b67ce4d"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.361244, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "transaction_line"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_line"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_transaction_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounts_tmp"], "alias": "stg_netsuite2__accounts_tmp", "checksum": {"name": "sha256", "checksum": "ea42fb9c5028557e4a00ca8042ccf67c27ec141986f4098401358f816de4b62f"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.3650508, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "account"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__customers_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__customers_tmp"], "alias": "stg_netsuite2__customers_tmp", "checksum": {"name": "sha256", "checksum": "e2db5f557cfe416e87f1b8fb38e2b62277871d2ed4c8b3f0ba83f35bcda6ecba"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.368902, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "customer"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.customer"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__entities_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entities_tmp"], "alias": "stg_netsuite2__entities_tmp", "checksum": {"name": "sha256", "checksum": "5b004f2a5981afaddb5fb502113db9a2d2165b9b56e93d02ba4658d8c425d907"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.3734982, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "entity"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_entities_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__currencies_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__currencies_tmp"], "alias": "stg_netsuite2__currencies_tmp", "checksum": {"name": "sha256", "checksum": "51d0eb93cca09133a27b63198a2583f1095c42c021c00f482d383fe34dfb833e"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.377415, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "currency"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.currency"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_currency_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__vendors_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendors_tmp"], "alias": "stg_netsuite2__vendors_tmp", "checksum": {"name": "sha256", "checksum": "cacf810d2c734a69ed20fdaa94325dca269a2203d99190a49735e95e20210053"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.381291, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "vendor"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__items_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__items_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__items_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__items_tmp"], "alias": "stg_netsuite2__items_tmp", "checksum": {"name": "sha256", "checksum": "8df58ddce61531e56b3d5dcf4eb5638d4951c523e9a3a0ad345b16135136b943"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.385323, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "item"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.item"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_books_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_books_tmp"], "alias": "stg_netsuite2__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "91d2b7f601c4944aa633be46c7c738a6749660f661eb9a0d841dbea6ed895ac2"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.389438, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "accounting_book"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_book_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_period_fiscal_cal_tmp"], "alias": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "checksum": {"name": "sha256", "checksum": "9b8ac7028346a715ad7ac74923f5478b4e9ed4963648f8eecc7d0e38c9e40c00"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.394392, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "accounting_period_fiscal_calendars"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_period_fiscal_cal_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__vendor_categories_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendor_categories_tmp"], "alias": "stg_netsuite2__vendor_categories_tmp", "checksum": {"name": "sha256", "checksum": "0d5cc385e0cacfd085258de54f4bd45cc1056400790f0ade2bf799fb4caa388b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.3985002, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "vendor_category"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor_category"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_vendor_category_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_book_subsidiaries_tmp"], "alias": "stg_netsuite2__accounting_book_subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "55aa091abe1d3558287be256a80d7c2dce22c0894f2bd71528ba392c6298ab2c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.4027488, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "accounting_book_subsidiaries"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_book_sub_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_accounting_lines_tmp"], "alias": "stg_netsuite2__transaction_accounting_lines_tmp", "checksum": {"name": "sha256", "checksum": "02cf897dc33a760cddf3c7b945d58668c4e9ab9ce804e418a076978b9b4c0391"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.407286, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "transaction_accounting_line"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_accounting_line"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_tran_acct_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__location_main_address_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__location_main_address_tmp"], "alias": "stg_netsuite2__location_main_address_tmp", "checksum": {"name": "sha256", "checksum": "90884d135897c1fd0b2f8453ec78ed3c573096b856c331f9bb5a91863f5af6e3"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.4113688, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "location_main_address"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location_main_address"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_location_main_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__locations_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__locations_tmp"], "alias": "stg_netsuite2__locations_tmp", "checksum": {"name": "sha256", "checksum": "b6a671c6c4a3a833cf0f4e9477d559b3e46d82f60eb09f316d232044dcaf142a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.415817, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "location"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__departments_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__departments_tmp"], "alias": "stg_netsuite2__departments_tmp", "checksum": {"name": "sha256", "checksum": "8cc13d2fbc4875e611c89c023a3f2619fa2c4e98c65ee23aa613aba9d70e1972"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.419602, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "department"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.department"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__classes_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__classes_tmp"], "alias": "stg_netsuite2__classes_tmp", "checksum": {"name": "sha256", "checksum": "c5d7c66aef27878ade36b031c9e26b523c76373ac106b0f7b618a8e76f3518a2"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.4234612, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite2", "classification"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.classification"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_classification_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__consolidated_exchange_rates_tmp"], "alias": "stg_netsuite2__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "2ffbe5553525e01ea5da9a18601d53d1839132753ea737a4836a5218a0e45f89"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.4272351, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\"", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_exchange_rate', true))) }}\n\nselect *\nfrom {{ var('netsuite2_consolidated_exchange_rates') }}", "language": "sql", "refs": [], "sources": [["netsuite2", "consolidated_exchange_rate"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "compiled": true, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_consolidated_exchange_rate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transactions": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__transactions", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__transactions.sql", "original_file_path": "models/netsuite/stg_netsuite__transactions.sql", "unique_id": "model.netsuite_source.stg_netsuite__transactions", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transactions"], "alias": "stg_netsuite__transactions", "checksum": {"name": "sha256", "checksum": "2d0d8f63cabe0e4e3249fcc6c10223012174fd926c27997b6f42596e735e83c7"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9858649, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__transactions_tmp", "package": null, "version": null}, {"name": "stg_netsuite__transactions_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transactions.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__customers": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__customers", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__customers.sql", "original_file_path": "models/netsuite/stg_netsuite__customers.sql", "unique_id": "model.netsuite_source.stg_netsuite__customers", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__customers"], "alias": "stg_netsuite__customers", "checksum": {"name": "sha256", "checksum": "94a4530d0d8849486bf29953bd13306b98753b43d393792c18af36d85f735ddc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.980065, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__customers_tmp", "package": null, "version": null}, {"name": "stg_netsuite__customers_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__customers.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_books": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__accounting_books", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__accounting_books.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_books.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_books", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_books"], "alias": "stg_netsuite__accounting_books", "checksum": {"name": "sha256", "checksum": "ae0bb73ecb655686109d40fc0ac15ea443cca8274418d8bda84da29a2996bef1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.972499, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__accounting_books_tmp", "package": null, "version": null}, {"name": "stg_netsuite__accounting_books_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_books.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__consolidated_exchange_rates"], "alias": "stg_netsuite__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "073d6cbdf97f937567acfcf51468060522576383080888e942957a32431e7362"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.977872, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__consolidated_exchange_rates_tmp", "package": null, "version": null}, {"name": "stg_netsuite__consolidated_exchange_rates_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transaction_lines": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__transaction_lines", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__transaction_lines.sql", "original_file_path": "models/netsuite/stg_netsuite__transaction_lines.sql", "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transaction_lines"], "alias": "stg_netsuite__transaction_lines", "checksum": {"name": "sha256", "checksum": "cc7f06abb723023815be762c7b003bfbdd7e154337216b993480fc7a62a05e21"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9846048, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__transaction_lines_tmp", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transaction_lines.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__income_accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__income_accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__income_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__income_accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite__income_accounts", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__income_accounts"], "alias": "stg_netsuite__income_accounts", "checksum": {"name": "sha256", "checksum": "99794235d5376b2078430446edf8000db0f943e3f5a2c370f6a27d0b8dbb289c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.98152, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__income_accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite__income_accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__income_accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__expense_accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__expense_accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__expense_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__expense_accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__expense_accounts"], "alias": "stg_netsuite__expense_accounts", "checksum": {"name": "sha256", "checksum": "4bb83b911e4a94c473c1a2a533af236e20f99cd68c6860afe633cc15f88e1bec"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.981029, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__expense_accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite__expense_accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__expense_accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendors": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__vendors", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__vendors.sql", "original_file_path": "models/netsuite/stg_netsuite__vendors.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendors", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendors"], "alias": "stg_netsuite__vendors", "checksum": {"name": "sha256", "checksum": "f2d5d38870a8a594552dc69a30ec24d43223b510c370b7b67c72684c61dfc919"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The vendor's company name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9870179, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__vendors_tmp", "package": null, "version": null}, {"name": "stg_netsuite__vendors_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendors.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__classes": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__classes", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__classes.sql", "original_file_path": "models/netsuite/stg_netsuite__classes.sql", "unique_id": "model.netsuite_source.stg_netsuite__classes", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__classes"], "alias": "stg_netsuite__classes", "checksum": {"name": "sha256", "checksum": "f9a61986b6dc700af3005927687bff5e51b4e23a842fe1bab744f8b3fa66640e"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9765482, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__classes_tmp", "package": null, "version": null}, {"name": "stg_netsuite__classes_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__classes.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__subsidiaries": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__subsidiaries", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__subsidiaries.sql", "original_file_path": "models/netsuite/stg_netsuite__subsidiaries.sql", "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__subsidiaries"], "alias": "stg_netsuite__subsidiaries", "checksum": {"name": "sha256", "checksum": "425b25b0d65b3b485279811fc9aefa3762ada18223182af8a05487246d79f69b"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9832299, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__subsidiaries_tmp", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__subsidiaries.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__accounts", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__accounts.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounts", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounts"], "alias": "stg_netsuite__accounts", "checksum": {"name": "sha256", "checksum": "de5eca6f78afb3b13df43e5200c05f92b8845d4d385ff8c683b9293ec2597de0"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.976087, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__accounts_tmp", "package": null, "version": null}, {"name": "stg_netsuite__accounts_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounts.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__items": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__items", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__items.sql", "original_file_path": "models/netsuite/stg_netsuite__items.sql", "unique_id": "model.netsuite_source.stg_netsuite__items", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__items"], "alias": "stg_netsuite__items", "checksum": {"name": "sha256", "checksum": "a2ec97c733737b45db5cf5f9547a0236714caa0c2bf87b5ff6f0b66043a051f1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "The items sales description.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.982216, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__items_tmp", "package": null, "version": null}, {"name": "stg_netsuite__items_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__items.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__locations": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__locations", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__locations.sql", "original_file_path": "models/netsuite/stg_netsuite__locations.sql", "unique_id": "model.netsuite_source.stg_netsuite__locations", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__locations"], "alias": "stg_netsuite__locations", "checksum": {"name": "sha256", "checksum": "2a509c978f3321f2402b0acac9d12431cd22bc89f454a2c13342d841a098ed04"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.98272, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__locations_tmp", "package": null, "version": null}, {"name": "stg_netsuite__locations_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__locations.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__departments": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__departments", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__departments.sql", "original_file_path": "models/netsuite/stg_netsuite__departments.sql", "unique_id": "model.netsuite_source.stg_netsuite__departments", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__departments"], "alias": "stg_netsuite__departments", "checksum": {"name": "sha256", "checksum": "9608858b5263ae2f27321660a5c3263108d2d1c0694489df85304eb2e52ef60a"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.980536, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__departments_tmp", "package": null, "version": null}, {"name": "stg_netsuite__departments_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__departments.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__currencies": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__currencies", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__currencies.sql", "original_file_path": "models/netsuite/stg_netsuite__currencies.sql", "unique_id": "model.netsuite_source.stg_netsuite__currencies", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__currencies"], "alias": "stg_netsuite__currencies", "checksum": {"name": "sha256", "checksum": "d378dfc58b57bfdcf5c0ea223d94453aa8106da86b0c407bdee1eb97d3b58ead"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Table detailing all currency information.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.978483, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__currencies_tmp", "package": null, "version": null}, {"name": "stg_netsuite__currencies_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.netsuite_source.get_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__currencies_tmp"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__currencies.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendor_types": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__vendor_types", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__vendor_types.sql", "original_file_path": "models/netsuite/stg_netsuite__vendor_types.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendor_types", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendor_types"], "alias": "stg_netsuite__vendor_types", "checksum": {"name": "sha256", "checksum": "f255f39da54739e397ca04af6c23cc81cad3b36caf45499333136b087d49ccfc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9863832, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__vendor_types_tmp", "package": null, "version": null}, {"name": "stg_netsuite__vendor_types_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendor_types.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_periods": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__accounting_periods", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/stg_netsuite__accounting_periods.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_periods.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_periods"], "alias": "stg_netsuite__accounting_periods", "checksum": {"name": "sha256", "checksum": "6a1ee35f76c202840468ca01b756ed47bc5cd2688c93596082f753d618d12bfb"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.9746351, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [{"name": "stg_netsuite__accounting_periods_tmp", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods_tmp", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_periods.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__accounting_periods_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_periods_tmp"], "alias": "stg_netsuite__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "28a02fe910972f99c5e124875533c8132e6dd925bb56741e1a2d16b625b34282"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.703799, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "accounting_periods"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounting_periods_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__accounting_books_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_books_tmp"], "alias": "stg_netsuite__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "e35a446e4d34afd3571f0cc4396228ebd3191421498e9410203dbaba12d3148d"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.707484, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "accounting_books"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounting_books_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__customers_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__customers_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__customers_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__customers_tmp"], "alias": "stg_netsuite__customers_tmp", "checksum": {"name": "sha256", "checksum": "b106ac731d1d28a410f842652a322650c66767fb79fa9016fd0a61a50c440849"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.7112079, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__customers_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_customers') }}", "language": "sql", "refs": [], "sources": [["netsuite", "customers"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.customers"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_customers_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__transaction_lines_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transaction_lines_tmp"], "alias": "stg_netsuite__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "a23c4106ac7323cf36868b8c50f6558ba5349d8049f7f62470fd6c8ed30878a9"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.715324, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "transaction_lines"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_transaction_lines_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__income_accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__income_accounts_tmp"], "alias": "stg_netsuite__income_accounts_tmp", "checksum": {"name": "sha256", "checksum": "fc866be13f2319563f6ac40b728cc5ace6ff712dd61317a1163122362af84151"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.7435641, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "income_accounts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.income_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_income_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounts_tmp"], "alias": "stg_netsuite__accounts_tmp", "checksum": {"name": "sha256", "checksum": "aedbde1fbfd6de71af2956bcd4e009f2e2429bc5cf19c73c0202ae2d7cf36566"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.747522, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounts') }}", "language": "sql", "refs": [], "sources": [["netsuite", "accounts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__departments_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__departments_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__departments_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__departments_tmp"], "alias": "stg_netsuite__departments_tmp", "checksum": {"name": "sha256", "checksum": "d7c7d932ae5cea0c318328e18d4f339df64f4e96d3c49659939fc1248d4dc731"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.751486, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__departments_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_departments') }}", "language": "sql", "refs": [], "sources": [["netsuite", "departments"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.departments"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_departments_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__currencies_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__currencies_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__currencies_tmp"], "alias": "stg_netsuite__currencies_tmp", "checksum": {"name": "sha256", "checksum": "8bcd4e9b4aa8bc73034ed444f8fdd51615b7509a2067647e6dce7c936fc539fe"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.755415, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__currencies_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_currencies') }}", "language": "sql", "refs": [], "sources": [["netsuite", "currencies"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_currencies_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__vendor_types_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendor_types_tmp"], "alias": "stg_netsuite__vendor_types_tmp", "checksum": {"name": "sha256", "checksum": "8f92023db03b866f3ee01f854b13ca5d09b00ae3fa7369a6a0e37733eaee8642"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.759434, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "vendor_types"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendor_types"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_vendor_types_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__vendors_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendors_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendors_tmp"], "alias": "stg_netsuite__vendors_tmp", "checksum": {"name": "sha256", "checksum": "80bd4603d1be17019ba53fbc5f9ac54d75b0bc93d51d344086ceb95e8aae4170"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.76442, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__vendors_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendors') }}", "language": "sql", "refs": [], "sources": [["netsuite", "vendors"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_vendors_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__locations_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__locations_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__locations_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__locations_tmp"], "alias": "stg_netsuite__locations_tmp", "checksum": {"name": "sha256", "checksum": "fdbcf875105e4b84bc7f69ced43eb3795d48ef027d1e95ce5951cbeac5984bcc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.768414, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__locations_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_locations') }}", "language": "sql", "refs": [], "sources": [["netsuite", "locations"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.locations"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_locations_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__items_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__items_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__items_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__items_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__items_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__items_tmp"], "alias": "stg_netsuite__items_tmp", "checksum": {"name": "sha256", "checksum": "fd4089f0b68dc2f7f028b503c94f98992d14bfdc686dbb69ad519c0f8caa4131"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.7725508, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__items_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_items') }}", "language": "sql", "refs": [], "sources": [["netsuite", "items"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.items"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__items_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_items_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__subsidiaries_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__subsidiaries_tmp"], "alias": "stg_netsuite__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "1e11f4a166e89ab4d3cdd94deddbac4f9d097d4189797c902eb17a9a702c52f1"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.776866, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_subsidiaries') }}", "language": "sql", "refs": [], "sources": [["netsuite", "subsidiaries"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_subsidiaries_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__transactions_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__transactions_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transactions_tmp"], "alias": "stg_netsuite__transactions_tmp", "checksum": {"name": "sha256", "checksum": "ded77da504c1f11d573eef4af0d4b1f13c8465619f743b50eb73b5742f8394f9"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.780724, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transactions_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transactions') }}", "language": "sql", "refs": [], "sources": [["netsuite", "transactions"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_transactions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "resource_type": "model", "package_name": "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", "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__consolidated_exchange_rates_tmp"], "alias": "stg_netsuite__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "f114303796042031529963cecee8c443b76900af00f3f9897fef51e958195097"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.785461, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "consolidated_exchange_rates"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_consolidated_exchange_rates_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__classes_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__classes_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__classes_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__classes_tmp"], "alias": "stg_netsuite__classes_tmp", "checksum": {"name": "sha256", "checksum": "05d0671ec3188229e60d596ed0e85a241546e7b1297cdf4aa11119d5e19aa1c9"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.789763, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__classes_tmp\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_classes') }}", "language": "sql", "refs": [], "sources": [["netsuite", "classes"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.classes"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_classes_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite_source", "name": "stg_netsuite__expense_accounts_tmp", "resource_type": "model", "package_name": "netsuite_source", "path": "netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__expense_accounts_tmp"], "alias": "stg_netsuite__expense_accounts_tmp", "checksum": {"name": "sha256", "checksum": "14815137bbf31baf6e7bee82022575b5dc85ac33baaae5d23a177c86c72f5961"}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1699563835.793671, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_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", "refs": [], "sources": [["netsuite", "expense_accounts"]], "metrics": [], "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.expense_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "compiled": true, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_expense_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__acctxperiod_exchange_rate_map", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql", "unique_id": "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__acctxperiod_exchange_rate_map"], "alias": "int_netsuite2__acctxperiod_exchange_rate_map", "checksum": {"name": "sha256", "checksum": "df59d9709db1d0d1ceea3e327b229adbd5eac922382a398e2db0325fb0016087"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 1/4) In order to accurately recreate the balance sheet and income statement, it is necessary to convert all transaction amounts into the parent subsidiary currency. The logic gets complicated because of balance sheet behavior. On the balance sheet, the conversion rate you use for a single transaction will differ by accounting period. For example, if a transaction took place in August, and you are generating balances for the December period, you will need to convert the August transaction using December's conversion rate.\nSo we created a mapping of all accounting periods and the respective exchange rates, by subsidiary, naming it period_exchange_rate_map.\nNext, we cross join the accounts table to the period_exchange_rate_map, generating a map of exchange rates, by account, accounting period, and subsidiary.\nNOTE: This is only applicable if you're using exchange rates. Consult the README on how to disable exchange rates using the `netsuite2__using_exchange_rate` in your dbt_project.yml.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.190847, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__acctxperiod_exchange_rate_map\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_exchange_rate', true)) }}\n\nwith accounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n), \n\n{% if var('netsuite2__multibook_accounting_enabled', false) %}\naccounting_books as (\n select * \n from {{ var('netsuite2_accounting_books') }}\n),\n{% endif %}\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\nconsolidated_exchange_rates as (\n select *\n from {{ var('netsuite2_consolidated_exchange_rates') }}\n),\n\ncurrencies as (\n select *\n from {{ var('netsuite2_currencies') }}\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n consolidated_exchange_rates.accounting_book_id,\n {% endif %}\n\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id,\n to_subsidiaries.name as to_subsidiary_name,\n currencies.symbol as to_subsidiary_currency_symbol\n from consolidated_exchange_rates\n \n left join subsidiaries as to_subsidiaries\n on consolidated_exchange_rates.to_subsidiary_id = to_subsidiaries.subsidiary_id\n\n left join currencies\n on currencies.currency_id = to_subsidiaries.currency_id\n\n {% if not var('netsuite2__using_to_subsidiary', false) %}\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constraint - only the primary subsidiary has no parent\n {% endif %}\n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n period_exchange_rate_map.accounting_book_id,\n {% endif %}\n \n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_name,\n period_exchange_rate_map.to_subsidiary_currency_symbol,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect *\nfrom accountxperiod_exchange_rate_map", "language": "sql", "refs": [{"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_books", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite2__consolidated_exchange_rates", "package": null, "version": null}, {"name": "stg_netsuite2__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite.int_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__currencies"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounts\"\n), \n\n\naccounting_books as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_books\"\n),\n\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\nconsolidated_exchange_rates as (\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\n),\n\ncurrencies as (\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__currencies\"\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n\n \n consolidated_exchange_rates.accounting_book_id,\n \n\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id,\n to_subsidiaries.name as to_subsidiary_name,\n currencies.symbol as to_subsidiary_currency_symbol\n from consolidated_exchange_rates\n \n left join subsidiaries as to_subsidiaries\n on consolidated_exchange_rates.to_subsidiary_id = to_subsidiaries.subsidiary_id\n\n left join currencies\n on currencies.currency_id = to_subsidiaries.currency_id\n\n \n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n\n \n period_exchange_rate_map.accounting_book_id,\n \n \n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_name,\n period_exchange_rate_map.to_subsidiary_currency_symbol,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect *\nfrom accountxperiod_exchange_rate_map", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__tran_with_converted_amounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__tran_with_converted_amounts", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql", "unique_id": "model.netsuite.int_netsuite2__tran_with_converted_amounts", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__tran_with_converted_amounts"], "alias": "int_netsuite2__tran_with_converted_amounts", "checksum": {"name": "sha256", "checksum": "74c5999b0e5e07aeced388e3f4c93ca523e55fdbd0a2921cc96f441ac04110a8"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 4/4) Now that we have the exchange rates and the unconverted amounts, the next step is to calculate the converted total. Additionally, we add in a couple of extra fields that will help us in our final balance sheet and income statement queries.\n \nNote: This is only applicable if you're using exchange rates. See the README for instructions on how to disable exchange rates using the `netsuite2__using_exchange_rate` in your dbt_project.yml.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.1916318, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transaction_lines_w_accounting_period as (\n select * \n from {{ ref('int_netsuite2__tran_lines_w_accounting_period') }}\n), \n\n{% if var('netsuite2__using_exchange_rate', true) %}\n accountxperiod_exchange_rate_map as (\n select * \n from {{ ref('int_netsuite2__acctxperiod_exchange_rate_map') }}\n ), \n{% endif %}\n\ntransaction_and_reporting_periods as (\n select * \n from {{ ref('int_netsuite2__tran_and_reporting_periods') }}\n), \n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id\n \n {% if var('netsuite2__using_exchange_rate', true) %}\n , exchange_reporting_period.exchange_rate as exchange_rate_reporting_period\n , exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n , exchange_reporting_period.to_subsidiary_id\n , exchange_reporting_period.to_subsidiary_name\n , exchange_reporting_period.to_subsidiary_currency_symbol\n {% endif %}\n\n from transaction_lines_w_accounting_period\n\n left join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n {% if var('netsuite2__using_exchange_rate', true) %}\n left join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and exchange_reporting_period.accounting_book_id = transaction_lines_w_accounting_period.accounting_book_id\n {% endif %}\n \n left join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and exchange_transaction_period.accounting_book_id = transaction_lines_w_accounting_period.accounting_book_id\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) %}\n and exchange_transaction_period.to_subsidiary_id = exchange_reporting_period.to_subsidiary_id\n {% endif %}\n {% endif %}\n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n {% if var('netsuite2__using_exchange_rate', true) %}\n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n {% else %}\n unconverted_amount as converted_amount_using_transaction_accounting_period,\n unconverted_amount as converted_amount_using_reporting_month,\n {% endif %}\n case\n when lower(accounts.account_type_id) in ('income','othincome','expense','othexpense','cogs') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.account_type_id) in ('acctrec', 'bank', 'deferexpense', 'fixedasset', 'othasset', 'othcurrasset', 'unbilledrec') then 'Asset'\n when lower(accounts.account_type_id) in ('cogs', 'expense', 'othexpense') then 'Expense'\n when lower(accounts.account_type_id) in ('income', 'othincome') then 'Income'\n when lower(accounts.account_type_id) in ('acctpay', 'credcard', 'deferrevenue', 'longtermliab', 'othcurrliab') then 'Liability'\n when lower(accounts.account_type_id) in ('equity', 'retained_earnings', 'net_income') then 'Equity'\n when lower(accounts.account_type_id) in ('nonposting', 'stat') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts\n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "language": "sql", "refs": [{"name": "int_netsuite2__tran_lines_w_accounting_period", "package": null, "version": null}, {"name": "int_netsuite2__acctxperiod_exchange_rate_map", "package": null, "version": null}, {"name": "int_netsuite2__tran_and_reporting_periods", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.int_netsuite2__accounts"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql", "compiled": true, "compiled_code": "\n\nwith transaction_lines_w_accounting_period as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_lines_w_accounting_period\"\n), \n\n\n accountxperiod_exchange_rate_map as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__acctxperiod_exchange_rate_map\"\n ), \n\n\ntransaction_and_reporting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_and_reporting_periods\"\n), \n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounts\"\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id\n \n \n , exchange_reporting_period.exchange_rate as exchange_rate_reporting_period\n , exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n \n\n \n , exchange_reporting_period.to_subsidiary_id\n , exchange_reporting_period.to_subsidiary_name\n , exchange_reporting_period.to_subsidiary_currency_symbol\n \n\n from transaction_lines_w_accounting_period\n\n left join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n \n left join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n\n \n and exchange_reporting_period.accounting_book_id = transaction_lines_w_accounting_period.accounting_book_id\n \n \n left join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n \n and exchange_transaction_period.accounting_book_id = transaction_lines_w_accounting_period.accounting_book_id\n \n\n \n and exchange_transaction_period.to_subsidiary_id = exchange_reporting_period.to_subsidiary_id\n \n \n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n \n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n \n case\n when lower(accounts.account_type_id) in ('income','othincome','expense','othexpense','cogs') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.account_type_id) in ('acctrec', 'bank', 'deferexpense', 'fixedasset', 'othasset', 'othcurrasset', 'unbilledrec') then 'Asset'\n when lower(accounts.account_type_id) in ('cogs', 'expense', 'othexpense') then 'Expense'\n when lower(accounts.account_type_id) in ('income', 'othincome') then 'Income'\n when lower(accounts.account_type_id) in ('acctpay', 'credcard', 'deferrevenue', 'longtermliab', 'othcurrliab') then 'Liability'\n when lower(accounts.account_type_id) in ('equity', 'retained_earnings', 'net_income') then 'Equity'\n when lower(accounts.account_type_id) in ('nonposting', 'stat') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts\n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__tran_and_reporting_periods": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__tran_and_reporting_periods", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__tran_and_reporting_periods.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__tran_and_reporting_periods.sql", "unique_id": "model.netsuite.int_netsuite2__tran_and_reporting_periods", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__tran_and_reporting_periods"], "alias": "int_netsuite2__tran_and_reporting_periods", "checksum": {"name": "sha256", "checksum": "7a1ee209c4f85a9bd5e275e97105f885e7e766ce2effed5cc77b7dc9de6cbc02"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 3/4) Once we have the cleaned transaction_lines_w_accounting_periods, we now need to figure out which exchange rate we should use for the currency conversion. The balance sheet complicates things, as conversion rates vary based on the reporting period. Therefore, all transactions need to be converted not only for the period in which the transaction took place in, but also all subsequent periods. transaction_and_reporting_periods creates the necessary mapping for this.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.1913862, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_and_reporting_periods\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith accounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.is_quarter = base.is_quarter\n and multiplier.is_year = base.is_year -- this was year_0 in netsuite1\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as {{ dbt.type_timestamp() }}) <= {{ current_timestamp() }} \n\n where not base.is_quarter\n and not base.is_year\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "language": "sql", "refs": [{"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.current_timestamp"], "nodes": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__tran_and_reporting_periods.sql", "compiled": true, "compiled_code": "\n\nwith accounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.is_quarter = base.is_quarter\n and multiplier.is_year = base.is_year -- this was year_0 in netsuite1\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as TIMESTAMP) <= now() \n\n where not base.is_quarter\n and not base.is_year\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__tran_lines_w_accounting_period", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql", "original_file_path": "models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql", "unique_id": "model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "fqn": ["netsuite", "netsuite2", "intermediate", "int_netsuite2__tran_lines_w_accounting_period"], "alias": "int_netsuite2__tran_lines_w_accounting_period", "checksum": {"name": "sha256", "checksum": "5d6ab4e827058d948cd01adf18e50c91566ca7d9d4560a0f9b0a216b37eb41a4"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 2/4) Next, we need to prepare a cleaned version of all transactions we need. Using the transactions and transaction_lines tables, the necessary fields are extracted, and transactions that are deleted, revenue arrangements, or non-posting transactions are filtered out. This is called transaction_lines_w_accounting_period. \n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.1911528, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_lines_w_accounting_period\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions as (\n select * \n from {{ var('netsuite2_transactions') }}\n), \n\ntransaction_lines as (\n select * \n from {{ ref('int_netsuite2__transaction_lines') }}\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n transaction_lines.accounting_book_id,\n transaction_lines.accounting_book_name,\n {% endif %}\n \n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and transaction_lines.is_posting\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "language": "sql", "refs": [{"name": "stg_netsuite2__transactions", "package": null, "version": null}, {"name": "int_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__transactions", "model.netsuite.int_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transactions\"\n), \n\ntransaction_lines as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__transaction_lines\"\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n\n \n transaction_lines.accounting_book_id,\n transaction_lines.accounting_book_name,\n \n \n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and transaction_lines.is_posting\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__transaction_lines": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__transaction_lines", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql", "unique_id": "model.netsuite.int_netsuite2__transaction_lines", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__transaction_lines"], "alias": "int_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "895461c84183b220b9ca7eda1d18a4e26297cdd19cb950638f9d9a283cea7441"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563835.8861299, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__transaction_lines\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transaction_lines as (\n\n select *\n from {{ var('netsuite2_transaction_lines') }}\n),\n\ntransaction_accounting_lines as (\n\n select *\n from {{ var('netsuite2_transaction_accounting_lines') }}\n),\n\n{% if var('netsuite2__multibook_accounting_enabled', false) %}\naccounting_books as (\n\n select *\n from {{ var('netsuite2_accounting_books') }}\n), \n{% endif %}\n\njoined as (\n\n select \n transaction_lines.*,\n transaction_accounting_lines.account_id,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n transaction_accounting_lines.accounting_book_id,\n accounting_books.accounting_book_name,\n {% endif %}\n \n transaction_accounting_lines.amount,\n transaction_accounting_lines.credit_amount,\n transaction_accounting_lines.debit_amount,\n transaction_accounting_lines.paid_amount,\n transaction_accounting_lines.unpaid_amount,\n transaction_accounting_lines.is_posting\n\n from transaction_lines\n left join transaction_accounting_lines\n on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id\n and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id\n \n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n left join accounting_books\n on accounting_books.accounting_book_id = transaction_accounting_lines.accounting_book_id\n\n union all\n\n select\n transaction_lines.*,\n transaction_accounting_lines.account_id,\n accounting_books.accounting_book_id,\n accounting_books.accounting_book_name,\n transaction_accounting_lines.amount,\n transaction_accounting_lines.credit_amount,\n transaction_accounting_lines.debit_amount,\n transaction_accounting_lines.paid_amount,\n transaction_accounting_lines.unpaid_amount,\n transaction_accounting_lines.is_posting\n\n from transaction_lines\n left join transaction_accounting_lines\n on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id\n and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id\n left join accounting_books\n on accounting_books.base_book_id = transaction_accounting_lines.accounting_book_id\n where accounting_books.base_book_id is not null\n {% endif %}\n\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__accounting_books"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql", "compiled": true, "compiled_code": "\n\nwith transaction_lines as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transaction_lines\"\n),\n\ntransaction_accounting_lines as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\n),\n\n\naccounting_books as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_books\"\n), \n\n\njoined as (\n\n select \n transaction_lines.*,\n transaction_accounting_lines.account_id,\n\n \n transaction_accounting_lines.accounting_book_id,\n accounting_books.accounting_book_name,\n \n \n transaction_accounting_lines.amount,\n transaction_accounting_lines.credit_amount,\n transaction_accounting_lines.debit_amount,\n transaction_accounting_lines.paid_amount,\n transaction_accounting_lines.unpaid_amount,\n transaction_accounting_lines.is_posting\n\n from transaction_lines\n left join transaction_accounting_lines\n on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id\n and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id\n \n \n left join accounting_books\n on accounting_books.accounting_book_id = transaction_accounting_lines.accounting_book_id\n\n union all\n\n select\n transaction_lines.*,\n transaction_accounting_lines.account_id,\n accounting_books.accounting_book_id,\n accounting_books.accounting_book_name,\n transaction_accounting_lines.amount,\n transaction_accounting_lines.credit_amount,\n transaction_accounting_lines.debit_amount,\n transaction_accounting_lines.paid_amount,\n transaction_accounting_lines.unpaid_amount,\n transaction_accounting_lines.is_posting\n\n from transaction_lines\n left join transaction_accounting_lines\n on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id\n and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id\n left join accounting_books\n on accounting_books.base_book_id = transaction_accounting_lines.accounting_book_id\n where accounting_books.base_book_id is not null\n \n\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__accounts", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__accounts.sql", "unique_id": "model.netsuite.int_netsuite2__accounts", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__accounts"], "alias": "int_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "c697178bc6cce5bca18af5dad48e06f10f0b6df9efcb843497ec51be379938dc"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563835.8916118, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounts\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith accounts as (\n\n select *\n from {{ var('netsuite2_accounts') }}\n),\n\naccount_types as (\n\n select *\n from {{ var('netsuite2_account_types') }}\n),\n\njoined as (\n\n select \n accounts.*,\n account_types.type_name,\n account_types.is_balancesheet,\n account_types.is_leftside\n\n from accounts\n left join account_types\n on accounts.account_type_id = account_types.account_type_id\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__accounts", "package": null, "version": null}, {"name": "stg_netsuite2__account_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__account_types"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__accounts.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounts\"\n),\n\naccount_types as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__account_types\"\n),\n\njoined as (\n\n select \n accounts.*,\n account_types.type_name,\n account_types.is_balancesheet,\n account_types.is_leftside\n\n from accounts\n left join account_types\n on accounts.account_type_id = account_types.account_type_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__customers": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__customers", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__customers.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__customers.sql", "unique_id": "model.netsuite.int_netsuite2__customers", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__customers"], "alias": "int_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "8ec34512233045f4d7eed6c47f28f9a338ad9b033b1aaed7db9ca5fa41b15620"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563835.896126, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__customers\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith customers as (\n\n select *\n from {{ var('netsuite2_customers') }}\n),\n\nentity_address as (\n\n select *\n from {{ var('netsuite2_entity_address') }}\n),\n\njoined as (\n\n select \n customers.*,\n entity_address.city,\n entity_address.state,\n entity_address.zipcode,\n entity_address.country\n\n from customers\n left join entity_address\n on coalesce(customers.default_billing_address_id, customers.default_shipping_address_id) = entity_address.nkey\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__customers", "package": null, "version": null}, {"name": "stg_netsuite2__entity_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__entity_address"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__customers.sql", "compiled": true, "compiled_code": "\n\nwith customers as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__customers\"\n),\n\nentity_address as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__entity_address\"\n),\n\njoined as (\n\n select \n customers.*,\n entity_address.city,\n entity_address.state,\n entity_address.zipcode,\n entity_address.country\n\n from customers\n left join entity_address\n on coalesce(customers.default_billing_address_id, customers.default_shipping_address_id) = entity_address.nkey\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__accounting_periods": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__accounting_periods", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__accounting_periods.sql", "unique_id": "model.netsuite.int_netsuite2__accounting_periods", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__accounting_periods"], "alias": "int_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "56dee9fd235beb56adc0a69db49ec059f5b8ce8b286a88bac723b1be5a058ec4"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563835.900351, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounting_periods\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith accounting_periods as (\n\n select *\n from {{ var('netsuite2_accounting_periods') }}\n),\n\naccounting_period_fiscal_calendars as (\n\n select *\n from {{ var('netsuite2_accounting_period_fiscal_calendars') }}\n),\n\njoined as (\n\n select \n accounting_periods.*,\n accounting_period_fiscal_calendars.fiscal_calendar_id\n\n from accounting_periods\n left join accounting_period_fiscal_calendars\n on accounting_periods.accounting_period_id = accounting_period_fiscal_calendars.accounting_period_id\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__accounting_period_fiscal_cal", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__accounting_periods.sql", "compiled": true, "compiled_code": "\n\nwith accounting_periods as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_periods\"\n),\n\naccounting_period_fiscal_calendars as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\n),\n\njoined as (\n\n select \n accounting_periods.*,\n accounting_period_fiscal_calendars.fiscal_calendar_id\n\n from accounting_periods\n left join accounting_period_fiscal_calendars\n on accounting_periods.accounting_period_id = accounting_period_fiscal_calendars.accounting_period_id\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite2__locations": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite2__locations", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/intermediate/base/int_netsuite2__locations.sql", "original_file_path": "models/netsuite2/intermediate/base/int_netsuite2__locations.sql", "unique_id": "model.netsuite.int_netsuite2__locations", "fqn": ["netsuite", "netsuite2", "intermediate", "base", "int_netsuite2__locations"], "alias": "int_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "dcf63741bb203f254599a08da056e3d7863cf6ef32cd211b8bc03c9b25ef9c9c"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563835.9046452, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__locations\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith locations as (\n\n select *\n from {{ var('netsuite2_locations') }}\n),\n\nlocation_main_address as (\n\n select *\n from {{ var('netsuite2_location_main_address') }}\n),\n\njoined as (\n\n select \n locations.*,\n location_main_address.city,\n location_main_address.state,\n location_main_address.zipcode,\n location_main_address.country\n\n from locations\n left join location_main_address\n on locations.main_address_id = location_main_address.nkey\n)\n\nselect *\nfrom joined", "language": "sql", "refs": [{"name": "stg_netsuite2__locations", "package": null, "version": null}, {"name": "stg_netsuite2__location_main_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__location_main_address"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/intermediate/base/int_netsuite2__locations.sql", "compiled": true, "compiled_code": "\n\nwith locations as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__locations\"\n),\n\nlocation_main_address as (\n\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__location_main_address\"\n),\n\njoined as (\n\n select \n locations.*,\n location_main_address.city,\n location_main_address.state,\n location_main_address.zipcode,\n location_main_address.country\n\n from locations\n left join location_main_address\n on locations.main_address_id = location_main_address.nkey\n)\n\nselect *\nfrom joined", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite__income_statement": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite__income_statement", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/netsuite__income_statement.sql", "original_file_path": "models/netsuite/netsuite__income_statement.sql", "unique_id": "model.netsuite.netsuite__income_statement", "fqn": ["netsuite", "netsuite", "netsuite__income_statement"], "alias": "netsuite__income_statement", "checksum": {"name": "sha256", "checksum": "997c3c23f5eae42a544f6800370758d0cb2f19249557201ff5631684b263d615"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The income statement query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the income statement. It also joins in class, department and location information for enhanced reporting. \n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_full_name": {"name": "accounting_period_full_name", "description": "Accounting periods full name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Yes/No field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Yes/No field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number_and_name": {"name": "account_number_and_name", "description": "Concatenation of account number and account name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_full_name": {"name": "location_full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_full_name": {"name": "department_full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_statement_sort_helper": {"name": "income_statement_sort_helper", "description": "Helper column for sorting income statement records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_full_name": {"name": "subsidiary_full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.216565, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__income_statement\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ ref('int_netsuite__transactions_with_converted_amounts') }}\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n{% if var('income_statement_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ var('netsuite_transaction_lines') }}\n),\n\nclasses as (\n select * \n from {{ var('netsuite_classes') }}\n),\n\nlocations as (\n select * \n from {{ var('netsuite_locations') }}\n),\n\ndepartments as (\n select * \n from {{ var('netsuite_departments') }}\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n {{ dbt.concat(['accounts.account_number',\"'-'\", 'accounts.name']) }} as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for classes table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('classes_pass_through_columns', identifier='classes') }},\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n -converted_amount_using_transaction_accounting_period as converted_amount,\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.type_name) = 'income' then 1\n when lower(accounts.type_name) = 'cost of goods sold' then 2\n when lower(accounts.type_name) = 'expense' then 3\n when lower(accounts.type_name) = 'other income' then 4\n when lower(accounts.type_name) = 'other expense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') %}\n\n , transaction_details.{{ var('income_statement_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n \n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n join accounts on accounts.account_id = transactions_with_converted_amounts.account_id\n\n join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') != []%}\n join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n)\n\nselect *\nfrom income_statement", "language": "sql", "refs": [{"name": "int_netsuite__transactions_with_converted_amounts", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite__classes", "package": null, "version": null}, {"name": "stg_netsuite__locations", "package": null, "version": null}, {"name": "stg_netsuite__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt.concat"], "nodes": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__departments"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/netsuite__income_statement.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transaction_lines\"\n),\n\nclasses as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__classes\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__locations\"\n),\n\ndepartments as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__departments\"\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n accounts.account_number || '-' || accounts.name as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for classes table pass through columns.\n \n\n\n\n,\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n -converted_amount_using_transaction_accounting_period as converted_amount,\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.type_name) = 'income' then 1\n when lower(accounts.type_name) = 'cost of goods sold' then 2\n when lower(accounts.type_name) = 'expense' then 3\n when lower(accounts.type_name) = 'other income' then 4\n when lower(accounts.type_name) = 'other expense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n \n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n join accounts on accounts.account_id = transactions_with_converted_amounts.account_id\n\n join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n)\n\nselect *\nfrom income_statement", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite__balance_sheet": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite__balance_sheet", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/netsuite__balance_sheet.sql", "original_file_path": "models/netsuite/netsuite__balance_sheet.sql", "unique_id": "model.netsuite.netsuite__balance_sheet", "fqn": ["netsuite", "netsuite", "netsuite__balance_sheet"], "alias": "netsuite__balance_sheet", "checksum": {"name": "sha256", "checksum": "3e24fc640a087a7f611bb5dafc8a92245273dcad097d539eba745c5e7bc47cf7"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The balance sheet query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the balance sheet. Transactions that are not balance sheet transactions are categorized as either Retained Earnings or Net Income. The Cumulative Translation Adjustment total, which in most cases does not have transactions associated with it, is calculated manually in the second part of the query.\n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_full_name": {"name": "accounting_period_full_name", "description": "Accounting periods full name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Yes/No field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Yes/No field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance_sheet_sort_helper": {"name": "balance_sheet_sort_helper", "description": "Helper column for sorting balance sheet records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.2157598, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__balance_sheet\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite__transactions_with_converted_amounts')}}\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n{% if var('balance_sheet_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n), \n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.type_name\n end as account_type_name,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_id\n end as account_id,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n case\n when lower(accounts.is_balancesheet) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n \n case\n when lower(accounts.type_name) = 'bank' then 1\n when lower(accounts.type_name) = 'accounts receivable' then 2\n when lower(accounts.type_name) = 'unbilled receivable' then 3\n when lower(accounts.type_name) = 'other current asset' then 4\n when lower(accounts.type_name) = 'fixed asset' then 5\n when lower(accounts.type_name) = 'other asset' then 6\n when lower(accounts.type_name) = 'deferred expense' then 7\n when lower(accounts.type_name) = 'accounts payable' then 8\n when lower(accounts.type_name) = 'credit card' then 9\n when lower(accounts.type_name) = 'other current liability' then 10\n when lower(accounts.type_name) = 'long term liability' then 11\n when lower(accounts.type_name) = 'deferred revenue' then 12\n when lower(accounts.type_name) = 'equity' then 13\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 15\n when lower(accounts.is_balancesheet) = 'f' then 14\n else null\n end as balance_sheet_sort_helper\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n \n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n null as account_id,\n null as account_number,\n\n {% if var('accounts_pass_through_columns') %}\n {% for field in var('accounts_pass_through_columns') %}\n null as {{ field.alias if field.alias else field.name }},\n {% endfor %}\n {% endif %}\n\n case\n when lower(account_category) = 'equity' or is_income_statement then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n\n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% endif %}\n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n)\n\nselect *\nfrom balance_sheet", "language": "sql", "refs": [{"name": "int_netsuite__transactions_with_converted_amounts", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/netsuite__balance_sheet.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_periods\"\n), \n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 'Net Income'\n when lower(accounts.is_balancesheet) = 'f' then 'Retained Earnings'\n else accounts.type_name\n end as account_type_name,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_id\n end as account_id,\n case\n when lower(accounts.is_balancesheet) = 'f' then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n case\n when lower(accounts.is_balancesheet) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 'f' then -converted_amount_using_reporting_month\n when lower(accounts.is_balancesheet) = 't' and lower(accounts.is_leftside) = 't' then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n \n case\n when lower(accounts.type_name) = 'bank' then 1\n when lower(accounts.type_name) = 'accounts receivable' then 2\n when lower(accounts.type_name) = 'unbilled receivable' then 3\n when lower(accounts.type_name) = 'other current asset' then 4\n when lower(accounts.type_name) = 'fixed asset' then 5\n when lower(accounts.type_name) = 'other asset' then 6\n when lower(accounts.type_name) = 'deferred expense' then 7\n when lower(accounts.type_name) = 'accounts payable' then 8\n when lower(accounts.type_name) = 'credit card' then 9\n when lower(accounts.type_name) = 'other current liability' then 10\n when lower(accounts.type_name) = 'long term liability' then 11\n when lower(accounts.type_name) = 'deferred revenue' then 12\n when lower(accounts.type_name) = 'equity' then 13\n when (lower(accounts.is_balancesheet) = 'f' and reporting_accounting_periods.year_id = transaction_accounting_periods.year_id) then 15\n when lower(accounts.is_balancesheet) = 'f' then 14\n else null\n end as balance_sheet_sort_helper\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.full_name as accounting_period_full_name,\n reporting_accounting_periods.name as accounting_period_name,\n lower(reporting_accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(reporting_accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n null as account_id,\n null as account_number,\n\n \n\n case\n when lower(account_category) = 'equity' or is_income_statement then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (lower(accounts.is_balancesheet) = 't'\n or transactions_with_converted_amounts.is_income_statement)\n)\n\nselect *\nfrom balance_sheet", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite__transaction_details": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite__transaction_details", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/netsuite__transaction_details.sql", "original_file_path": "models/netsuite/netsuite__transaction_details.sql", "unique_id": "model.netsuite.netsuite__transaction_details", "fqn": ["netsuite", "netsuite", "netsuite__transaction_details"], "alias": "netsuite__transaction_details", "checksum": {"name": "sha256", "checksum": "e3cbc75b04e4732f87ec8ddd32a9cc9a63346e2cdb1c195bc844d770fa2129c3"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "This table uses Netsuite's core table, transaction_lines, and joins a handful of other tables to add more detail to those line items. For all transactions, you are able to see the associated accounting period, account and subsidiary. Where applicable, you can also see information about the customer, location, item, vendor, and department.\n", "columns": {"transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_memo": {"name": "transaction_memo", "description": "Memo associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_non_posting": {"name": "is_transaction_non_posting", "description": "Yes/No field, indicating whether or not the transaction line is non-posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the transaction (Closed, Pending Billing, Billing, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transaction occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_due_date": {"name": "transaction_due_date", "description": "Timestamp of the date which the transaction is due.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Type identifier of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_intercompany": {"name": "is_transaction_intercompany", "description": "Yes/No field, indicating whether or not the transaction is an intercompany transaction or an advanced intercompany transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_full_name": {"name": "accounting_period_full_name", "description": "Full name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Yes/No field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Yes/No field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_leftside": {"name": "is_account_leftside", "description": "Yes/No field indicating whether or not the account is leftside.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_payable": {"name": "is_accounts_payable", "description": "Yes/No field indicating whether or not the account type name includes 'accounts payable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_receivable": {"name": "is_accounts_receivable", "description": "Yes/No field indicating whether or not the account type name includes 'accounts receivable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_intercompany": {"name": "is_account_intercompany", "description": "Yes/No field indicating whether or not the account type name includes 'intercompany'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "Name of the parent account, if parent account relationship exists. Otherwise, the name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_income_account": {"name": "is_income_account", "description": "Yes/No field indicating whether or not the account is an income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_expense_account": {"name": "is_expense_account", "description": "Yes/No field indicating whether or not the account is an expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_city": {"name": "customer_city", "description": "City where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_state": {"name": "customer_state", "description": "State where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_zipcode": {"name": "customer_zipcode", "description": "Zip Code of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_country": {"name": "customer_country", "description": "Country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_date_first_order": {"name": "customer_date_first_order", "description": "Date customer placed first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_name": {"name": "item_name", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_type_name": {"name": "item_type_name", "description": "Type name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Description of the item for sales purposes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_name": {"name": "location_name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_city": {"name": "location_city", "description": "City used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_country": {"name": "location_country", "description": "Country used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_type_name": {"name": "vendor_type_name", "description": "Type name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_create_date": {"name": "vendor_create_date", "description": "Date vendor was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_name": {"name": "currency_name", "description": "Name of the currency used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_symbol": {"name": "currency_symbol", "description": "Symbol used to identify the currency type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_amount": {"name": "transaction_amount", "description": "Total amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.218071, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__transaction_details\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite__transactions_with_converted_amounts')}}\n),\n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n),\n\naccounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ var('netsuite_transaction_lines') }}\n),\n\ntransactions as (\n select * \n from {{ var('netsuite_transactions') }}\n),\n\nincome_accounts as (\n select * \n from {{ var('netsuite_income_accounts') }}\n),\n\nexpense_accounts as (\n select * \n from {{ var('netsuite_expense_accounts') }}\n),\n\ncustomers as (\n select * \n from {{ var('netsuite_customers') }}\n),\n\nitems as (\n select * \n from {{ var('netsuite_items') }}\n),\n\nlocations as (\n select * \n from {{ var('netsuite_locations') }}\n),\n\nvendors as (\n select * \n from {{ var('netsuite_vendors') }}\n),\n\nvendor_types as (\n select * \n from {{ var('netsuite_vendor_types') }}\n),\n\ndepartments as (\n select * \n from {{ var('netsuite_departments') }}\n),\n\ncurrencies as (\n select * \n from {{ var('netsuite_currencies') }}\n),\n\nclasses as (\n select *\n from {{ var('netsuite_classes') }}\n),\n\ntransaction_details as (\n select\n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n lower(transaction_lines.non_posting_line) = 'yes' as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n (lower(transactions.is_advanced_intercompany) = 'yes' or lower(transactions.is_intercompany) = 'yes') as is_transaction_intercompany\n\n --The below script allows for transactions table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transactions_pass_through_columns', identifier='transactions') }} \n\n --The below script allows for transaction lines table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transaction_lines_pass_through_columns', identifier='transaction_lines') }},\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.full_name as accounting_period_full_name,\n accounting_periods.name as accounting_period_name,\n lower(accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n lower(accounts.is_leftside) = 't' as is_account_leftside,\n lower(accounts.type_name) like 'accounts payable%' as is_accounts_payable,\n lower(accounts.type_name) like 'accounts receivable%' as is_accounts_receivable,\n lower(accounts.name) like '%intercompany%' as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n income_accounts.income_account_id is not null as is_income_account,\n expense_accounts.expense_account_id is not null as is_expense_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n vendor_types.name as vendor_type_name,\n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n left join income_accounts \n on income_accounts.income_account_id = accounts.account_id\n\n left join expense_accounts \n on expense_accounts.expense_account_id = accounts.account_id\n\n left join customers \n on customers.customer_id = transaction_lines.company_id\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = transaction_lines.company_id\n\n left join vendor_types \n on vendor_types.vendor_type_id = vendors.vendor_type_id\n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n)\n\nselect *\nfrom transaction_details", "language": "sql", "refs": [{"name": "int_netsuite__transactions_with_converted_amounts", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite__transactions", "package": null, "version": null}, {"name": "stg_netsuite__income_accounts", "package": null, "version": null}, {"name": "stg_netsuite__expense_accounts", "package": null, "version": null}, {"name": "stg_netsuite__customers", "package": null, "version": null}, {"name": "stg_netsuite__items", "package": null, "version": null}, {"name": "stg_netsuite__locations", "package": null, "version": null}, {"name": "stg_netsuite__vendors", "package": null, "version": null}, {"name": "stg_netsuite__vendor_types", "package": null, "version": null}, {"name": "stg_netsuite__departments", "package": null, "version": null}, {"name": "stg_netsuite__currencies", "package": null, "version": null}, {"name": "stg_netsuite__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns"], "nodes": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__vendors", "model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__classes"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/netsuite__transaction_details.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"\n),\n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts\"\n),\n\naccounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transaction_lines\"\n),\n\ntransactions as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transactions\"\n),\n\nincome_accounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__income_accounts\"\n),\n\nexpense_accounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__expense_accounts\"\n),\n\ncustomers as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__customers\"\n),\n\nitems as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__items\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__locations\"\n),\n\nvendors as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__vendors\"\n),\n\nvendor_types as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__vendor_types\"\n),\n\ndepartments as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__departments\"\n),\n\ncurrencies as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__currencies\"\n),\n\nclasses as (\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__classes\"\n),\n\ntransaction_details as (\n select\n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n lower(transaction_lines.non_posting_line) = 'yes' as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n (lower(transactions.is_advanced_intercompany) = 'yes' or lower(transactions.is_intercompany) = 'yes') as is_transaction_intercompany\n\n --The below script allows for transactions table pass through columns.\n \n\n\n\n \n\n --The below script allows for transaction lines table pass through columns.\n \n\n\n\n,\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.full_name as accounting_period_full_name,\n accounting_periods.name as accounting_period_name,\n lower(accounting_periods.is_adjustment) = 'yes' as is_accounting_period_adjustment,\n lower(accounting_periods.is_closed) = 'yes' as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n lower(accounts.is_leftside) = 't' as is_account_leftside,\n lower(accounts.type_name) like 'accounts payable%' as is_accounts_payable,\n lower(accounts.type_name) like 'accounts receivable%' as is_accounts_receivable,\n lower(accounts.name) like '%intercompany%' as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n income_accounts.income_account_id is not null as is_income_account,\n expense_accounts.expense_account_id is not null as is_expense_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n vendor_types.name as vendor_type_name,\n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.type_name) = 'income' or lower(accounts.type_name) = 'other income' then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n left join income_accounts \n on income_accounts.income_account_id = accounts.account_id\n\n left join expense_accounts \n on expense_accounts.expense_account_id = accounts.account_id\n\n left join customers \n on customers.customer_id = transaction_lines.company_id\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = transaction_lines.company_id\n\n left join vendor_types \n on vendor_types.vendor_type_id = vendors.vendor_type_id\n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n)\n\nselect *\nfrom transaction_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__accountxperiod_exchange_rate_map", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__accountxperiod_exchange_rate_map.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__accountxperiod_exchange_rate_map.sql", "unique_id": "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__accountxperiod_exchange_rate_map"], "alias": "int_netsuite__accountxperiod_exchange_rate_map", "checksum": {"name": "sha256", "checksum": "1f87a3144407c91a4c3d323e9bc32277d17ac530b23132c612f769e7fc802802"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 1/4) In order to accurately recreate the balance sheet and income statement, it is necessary to convert all transaction amounts into the currency of the parent subsidiary. The logic gets complicated fast, mostly because of the behavior of the balance sheet. On the balance sheet, the conversion rate you use for a single transaction will differ by accounting period. For example, if a transaction took place in August, and you are generating balances for the December period, you will need to convert the August transaction using the December conversion rate.\nThe first step here is to create a mapping of all accounting periods and the respective exchange rates, by subsidiary. This is called period_exchange_rate_map\nNext, we cross join the accounts table to the period_exchange_rate_map, so we can generate a map of exchange rates, by account, accounting period, and subsidiary.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.21437, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__accountxperiod_exchange_rate_map\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith accounts as (\n select * \n from {{ var('netsuite_accounts') }}\n), \n\naccounting_books as (\n select * \n from {{ var('netsuite_accounting_books') }}\n), \n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\nconsolidated_exchange_rates as (\n select * \n from {{ var('netsuite_consolidated_exchange_rates') }}\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id\n from consolidated_exchange_rates\n\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constrait - only the primary subsidiary has no parent\n and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where lower(is_primary) = 'yes')\n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect * \nfrom accountxperiod_exchange_rate_map", "language": "sql", "refs": [{"name": "stg_netsuite__accounts", "package": null, "version": null}, {"name": "stg_netsuite__accounting_books", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}, {"name": "stg_netsuite__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__accountxperiod_exchange_rate_map.sql", "compiled": true, "compiled_code": "\n\nwith accounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts\"\n), \n\naccounting_books as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_books\"\n), \n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\nconsolidated_exchange_rates as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\n),\n\nperiod_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary\n select\n consolidated_exchange_rates.accounting_period_id,\n consolidated_exchange_rates.average_rate,\n consolidated_exchange_rates.current_rate,\n consolidated_exchange_rates.historical_rate,\n consolidated_exchange_rates.from_subsidiary_id,\n consolidated_exchange_rates.to_subsidiary_id\n from consolidated_exchange_rates\n\n where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constrait - only the primary subsidiary has no parent\n and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where lower(is_primary) = 'yes')\n), \n\naccountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period\n select\n period_exchange_rate_map.accounting_period_id,\n period_exchange_rate_map.from_subsidiary_id,\n period_exchange_rate_map.to_subsidiary_id,\n accounts.account_id,\n case \n when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate\n when lower(accounts.general_rate_type) = 'current' then period_exchange_rate_map.current_rate\n when lower(accounts.general_rate_type) = 'average' then period_exchange_rate_map.average_rate\n else null\n end as exchange_rate\n from accounts\n \n cross join period_exchange_rate_map\n)\n\nselect * \nfrom accountxperiod_exchange_rate_map", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__transaction_lines_w_accounting_period", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__transaction_lines_w_accounting_period.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__transaction_lines_w_accounting_period.sql", "unique_id": "model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__transaction_lines_w_accounting_period"], "alias": "int_netsuite__transaction_lines_w_accounting_period", "checksum": {"name": "sha256", "checksum": "184230132efcc5526a046c3f3d9c6fd2f41b360f73b32a46fd67a85de83e741f"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 2/4) Next, we need to prepare a cleaned version of all transactions we need. Using the transactions and transaction_lines tables, the necessary fields are extracted, and transactions that are deleted, revenue arrangements, or non-posting transactions are filtered out. This is called transaction_lines_w_accounting_period. \n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.214605, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transaction_lines_w_accounting_period\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transactions as (\n select * \n from {{ var('netsuite_transactions') }}\n), \n\ntransaction_lines as (\n select * \n from {{ var('netsuite_transaction_lines') }}\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and lower(non_posting_line) != 'yes'\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "language": "sql", "refs": [{"name": "stg_netsuite__transactions", "package": null, "version": null}, {"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__transaction_lines_w_accounting_period.sql", "compiled": true, "compiled_code": "\n\nwith transactions as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transactions\"\n), \n\ntransaction_lines as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transaction_lines\"\n),\n\ntransaction_lines_w_accounting_period as ( -- transaction line totals, by accounts, accounting period and subsidiary\n select\n transaction_lines.transaction_id,\n transaction_lines.transaction_line_id,\n transaction_lines.subsidiary_id,\n transaction_lines.account_id,\n transactions.accounting_period_id as transaction_accounting_period_id,\n coalesce(transaction_lines.amount, 0) as unconverted_amount\n from transaction_lines\n\n join transactions on transactions.transaction_id = transaction_lines.transaction_id\n\n where lower(transactions.transaction_type) != 'revenue arrangement'\n and lower(non_posting_line) != 'yes'\n)\n\nselect * \nfrom transaction_lines_w_accounting_period", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__transaction_and_reporting_periods": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__transaction_and_reporting_periods", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__transaction_and_reporting_periods.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__transaction_and_reporting_periods.sql", "unique_id": "model.netsuite.int_netsuite__transaction_and_reporting_periods", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__transaction_and_reporting_periods"], "alias": "int_netsuite__transaction_and_reporting_periods", "checksum": {"name": "sha256", "checksum": "e295bc4fe744d3079ea36f4b4a91fcfd55e121fbc637ebbd57262d5ff54351bd"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 3/4) Once we have the cleaned transaction_lines_w_accounting_periods, we now need to figure out which exchange rate we should use for the currency conversion. The balance sheet complicates things, as conversion rates vary based on the reporting period. Therefore, all transactions need to be converted not only for the period in which the transaction took place in, but also all subsequent periods. transaction_and_reporting_periods creates the necessary mapping for this.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.214831, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transaction_and_reporting_periods\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith accounting_periods as (\n select * \n from {{ var('netsuite_accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite_subsidiaries') }}\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.quarter = base.quarter\n and multiplier.year_0 = base.year_0\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as {{ dbt.type_timestamp() }}) <= {{ current_timestamp() }} \n\n where lower(base.quarter) = 'no'\n and lower(base.year_0) = 'no'\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.current_timestamp"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__transaction_and_reporting_periods.sql", "compiled": true, "compiled_code": "\n\nwith accounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries\"\n),\n\ntransaction_and_reporting_periods as ( \n select\n base.accounting_period_id as accounting_period_id,\n multiplier.accounting_period_id as reporting_accounting_period_id\n from accounting_periods as base\n\n join accounting_periods as multiplier\n on multiplier.starting_at >= base.starting_at\n and multiplier.quarter = base.quarter\n and multiplier.year_0 = base.year_0\n and multiplier.fiscal_calendar_id = base.fiscal_calendar_id\n and cast(multiplier.starting_at as TIMESTAMP) <= now() \n\n where lower(base.quarter) = 'no'\n and lower(base.year_0) = 'no'\n and base.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) -- fiscal calendar will align with parent subsidiary's default calendar\n)\n\nselect * \nfrom transaction_and_reporting_periods", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.int_netsuite__transactions_with_converted_amounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "int_netsuite__transactions_with_converted_amounts", "resource_type": "model", "package_name": "netsuite", "path": "netsuite/intermediate/int_netsuite__transactions_with_converted_amounts.sql", "original_file_path": "models/netsuite/intermediate/int_netsuite__transactions_with_converted_amounts.sql", "unique_id": "model.netsuite.int_netsuite__transactions_with_converted_amounts", "fqn": ["netsuite", "netsuite", "intermediate", "int_netsuite__transactions_with_converted_amounts"], "alias": "int_netsuite__transactions_with_converted_amounts", "checksum": {"name": "sha256", "checksum": "b6e06d34bd0a98b41aa2a9df77fa23184d217a210c4d9a1035a9a8efcaef4654"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "(Step 4/4) Now that we have the exchange rates and the unconverted amounts, the next step is to calculate the converted total. Additionally, we add in a couple of extra fields that will help us in our final balance sheet and income statement queries.\n", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563836.215053, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transactions_with_converted_amounts\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith transaction_lines_w_accounting_period as (\n select * \n from {{ ref('int_netsuite__transaction_lines_w_accounting_period') }}\n), \n\naccountxperiod_exchange_rate_map as (\n select * \n from {{ ref('int_netsuite__accountxperiod_exchange_rate_map') }}\n), \n\ntransaction_and_reporting_periods as (\n select * \n from {{ ref('int_netsuite__transaction_and_reporting_periods') }}\n), \n\naccounts as (\n select * \n from {{ var('netsuite_accounts') }}\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id,\n exchange_reporting_period.exchange_rate as exchange_rate_reporting_period,\n exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n from transaction_lines_w_accounting_period\n\n join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n case\n when lower(accounts.type_name) in ('income','other income','expense','other expense','other income','cost of goods sold') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.type_name) in ('accounts receivable', 'bank', 'deferred expense', 'fixed asset', 'other asset', 'other current asset', 'unbilled receivable', 'prepaid expense') then 'Asset'\n when lower(accounts.type_name) in ('cost of goods sold', 'expense', 'other expense') then 'Expense'\n when lower(accounts.type_name) in ('income', 'other income') then 'Income'\n when lower(accounts.type_name) in ('accounts payable', 'credit card', 'deferred revenue', 'long term liability', 'other current liability') then 'Liability'\n when lower(accounts.type_name) in ('equity', 'retained earnings', 'net income') then 'Equity'\n when lower(accounts.type_name) in ('non posting', 'statistical') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts \n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "language": "sql", "refs": [{"name": "int_netsuite__transaction_lines_w_accounting_period", "package": null, "version": null}, {"name": "int_netsuite__accountxperiod_exchange_rate_map", "package": null, "version": null}, {"name": "int_netsuite__transaction_and_reporting_periods", "package": null, "version": null}, {"name": "stg_netsuite__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite_source.stg_netsuite__accounts"]}, "compiled_path": "target/compiled/netsuite/models/netsuite/intermediate/int_netsuite__transactions_with_converted_amounts.sql", "compiled": true, "compiled_code": "\n\nwith transaction_lines_w_accounting_period as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transaction_lines_w_accounting_period\"\n), \n\naccountxperiod_exchange_rate_map as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__accountxperiod_exchange_rate_map\"\n), \n\ntransaction_and_reporting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite__transaction_and_reporting_periods\"\n), \n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts\"\n),\n\ntransactions_in_every_calculation_period_w_exchange_rates as (\n select\n transaction_lines_w_accounting_period.*,\n reporting_accounting_period_id,\n exchange_reporting_period.exchange_rate as exchange_rate_reporting_period,\n exchange_transaction_period.exchange_rate as exchange_rate_transaction_period\n from transaction_lines_w_accounting_period\n\n join transaction_and_reporting_periods \n on transaction_and_reporting_periods.accounting_period_id = transaction_lines_w_accounting_period.transaction_accounting_period_id \n\n join accountxperiod_exchange_rate_map as exchange_reporting_period\n on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id\n and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n \n join accountxperiod_exchange_rate_map as exchange_transaction_period\n on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id\n and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id\n and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id\n), \n\ntransactions_with_converted_amounts as (\n select\n transactions_in_every_calculation_period_w_exchange_rates.*,\n unconverted_amount * exchange_rate_transaction_period as converted_amount_using_transaction_accounting_period,\n unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,\n case\n when lower(accounts.type_name) in ('income','other income','expense','other expense','other income','cost of goods sold') then true\n else false \n end as is_income_statement,\n case\n when lower(accounts.type_name) in ('accounts receivable', 'bank', 'deferred expense', 'fixed asset', 'other asset', 'other current asset', 'unbilled receivable', 'prepaid expense') then 'Asset'\n when lower(accounts.type_name) in ('cost of goods sold', 'expense', 'other expense') then 'Expense'\n when lower(accounts.type_name) in ('income', 'other income') then 'Income'\n when lower(accounts.type_name) in ('accounts payable', 'credit card', 'deferred revenue', 'long term liability', 'other current liability') then 'Liability'\n when lower(accounts.type_name) in ('equity', 'retained earnings', 'net income') then 'Equity'\n when lower(accounts.type_name) in ('non posting', 'statistical') then 'Other'\n else null \n end as account_category\n from transactions_in_every_calculation_period_w_exchange_rates\n\n left join accounts \n on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id \n)\n\nselect * \nfrom transactions_with_converted_amounts", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417", "fqn": ["netsuite_source", "unique_stg_netsuite__accounting_books_accounting_book_id"], "alias": "unique_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563835.9928782, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_books_accounting_book_id"], "alias": "not_null_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563835.993995, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_accounting_period_id"], "alias": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563835.995031, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id"], "alias": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563835.996164, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect fiscal_calendar_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere fiscal_calendar_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "fiscal_calendar_id", "file_key_name": "models.stg_netsuite__accounting_periods", "attached_node": "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_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"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d"}, "created_at": 1699563835.997183, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n accounting_period_id, fiscal_calendar_id\n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281", "fqn": ["netsuite_source", "unique_stg_netsuite__accounts_account_id"], "alias": "unique_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0041118, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounts_account_id"], "alias": "not_null_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.005131, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b", "fqn": ["netsuite_source", "unique_stg_netsuite__classes_class_id"], "alias": "unique_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.006505, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "fqn": ["netsuite_source", "not_null_stg_netsuite__classes_class_id"], "alias": "not_null_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.007533, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54", "fqn": ["netsuite_source", "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee"}, "created_at": 1699563836.008537, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "fqn": ["netsuite_source", "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86"}, "created_at": 1699563836.033082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c", "fqn": ["netsuite_source", "unique_stg_netsuite__currencies_currency_id"], "alias": "unique_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.034196, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "fqn": ["netsuite_source", "not_null_stg_netsuite__currencies_currency_id"], "alias": "not_null_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.035219, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9", "fqn": ["netsuite_source", "unique_stg_netsuite__customers_customer_id"], "alias": "unique_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0363321, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "fqn": ["netsuite_source", "not_null_stg_netsuite__customers_customer_id"], "alias": "not_null_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.037348, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1", "fqn": ["netsuite_source", "unique_stg_netsuite__departments_department_id"], "alias": "unique_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0383518, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "fqn": ["netsuite_source", "not_null_stg_netsuite__departments_department_id"], "alias": "not_null_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0394838, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__expense_accounts_expense_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff", "fqn": ["netsuite_source", "unique_stg_netsuite__expense_accounts_expense_account_id"], "alias": "unique_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.040482, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__expense_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__expense_accounts_expense_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n expense_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__expense_accounts_expense_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "fqn": ["netsuite_source", "not_null_stg_netsuite__expense_accounts_expense_account_id"], "alias": "not_null_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.041478, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__expense_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect expense_account_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__income_accounts_income_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07", "fqn": ["netsuite_source", "unique_stg_netsuite__income_accounts_income_account_id"], "alias": "unique_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.042471, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__income_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__income_accounts_income_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n income_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__income_accounts_income_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "fqn": ["netsuite_source", "not_null_stg_netsuite__income_accounts_income_account_id"], "alias": "not_null_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.043585, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__income_accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__income_accounts_income_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect income_account_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654", "fqn": ["netsuite_source", "unique_stg_netsuite__items_item_id"], "alias": "unique_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.044586, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "fqn": ["netsuite_source", "not_null_stg_netsuite__items_item_id"], "alias": "not_null_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.045592, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2", "fqn": ["netsuite_source", "unique_stg_netsuite__locations_location_id"], "alias": "unique_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.046727, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "fqn": ["netsuite_source", "not_null_stg_netsuite__locations_location_id"], "alias": "not_null_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0477178, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0", "fqn": ["netsuite_source", "unique_stg_netsuite__subsidiaries_subsidiary_id"], "alias": "unique_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.048718, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "fqn": ["netsuite_source", "not_null_stg_netsuite__subsidiaries_subsidiary_id"], "alias": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.049703, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__transaction_lines_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_id"], "alias": "not_null_stg_netsuite__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0508249, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_line_id"], "alias": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0518389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite__transaction_lines", "attached_node": "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_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"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad"}, "created_at": 1699563836.052848, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad\") }}", "language": "sql", "refs": [{"name": "stg_netsuite__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79", "fqn": ["netsuite_source", "unique_stg_netsuite__transactions_transaction_id"], "alias": "unique_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.055577, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "fqn": ["netsuite_source", "not_null_stg_netsuite__transactions_transaction_id"], "alias": "not_null_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.056594, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__vendor_types_vendor_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69", "fqn": ["netsuite_source", "unique_stg_netsuite__vendor_types_vendor_type_id"], "alias": "unique_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0577412, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendor_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendor_types_vendor_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__vendor_types_vendor_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendor_types_vendor_type_id"], "alias": "not_null_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.058742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendor_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_type_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39", "fqn": ["netsuite_source", "unique_stg_netsuite__vendors_vendor_id"], "alias": "unique_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.059744, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendors_vendor_id"], "alias": "not_null_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.060732, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__account_types_account_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f", "fqn": ["netsuite_source", "unique_stg_netsuite2__account_types_account_type_id"], "alias": "unique_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.084372, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__account_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__account_types_account_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n account_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__account_types_account_type_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "fqn": ["netsuite_source", "not_null_stg_netsuite2__account_types_account_type_id"], "alias": "not_null_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.085496, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__account_types", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__account_types_account_type_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_type_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "alias": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.086522, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_book_subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127"}, "created_at": 1699563836.0875368, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_book_subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_books_accounting_book_id"], "alias": "unique_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.08868, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_books_accounting_book_id"], "alias": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.089679, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_books", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "alias": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0906959, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_period_fiscal_cal", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415"}, "created_at": 1699563836.092055, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_period_fiscal_cal", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_periods_accounting_period_id"], "alias": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.093177, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n accounting_period_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_periods_accounting_period_id"], "alias": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.094205, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounting_periods", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounts_account_id"], "alias": "unique_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.095219, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__accounts_account_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounts_account_id"], "alias": "not_null_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.096357, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__accounts", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounts_account_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98", "fqn": ["netsuite_source", "unique_stg_netsuite2__classes_class_id"], "alias": "unique_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.0973701, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__classes_class_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "fqn": ["netsuite_source", "not_null_stg_netsuite2__classes_class_id"], "alias": "not_null_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.098372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__classes", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__classes_class_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a", "fqn": ["netsuite_source", "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1"}, "created_at": 1699563836.099526, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "fqn": ["netsuite_source", "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511"}, "created_at": 1699563836.100536, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__consolidated_exchange_rates", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78", "fqn": ["netsuite_source", "unique_stg_netsuite2__currencies_currency_id"], "alias": "unique_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1015759, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__currencies_currency_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "fqn": ["netsuite_source", "not_null_stg_netsuite2__currencies_currency_id"], "alias": "not_null_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.102576, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__currencies", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__currencies_currency_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2", "fqn": ["netsuite_source", "unique_stg_netsuite2__customers_customer_id"], "alias": "unique_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.103728, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__customers_customer_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "fqn": ["netsuite_source", "not_null_stg_netsuite2__customers_customer_id"], "alias": "not_null_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.104822, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__customers", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b", "fqn": ["netsuite_source", "unique_stg_netsuite2__departments_department_id"], "alias": "unique_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.105837, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__departments_department_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "fqn": ["netsuite_source", "not_null_stg_netsuite2__departments_department_id"], "alias": "not_null_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.107152, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__departments_department_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__entities_entity_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50", "fqn": ["netsuite_source", "unique_stg_netsuite2__entities_entity_id"], "alias": "unique_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.108168, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__entities", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__entities_entity_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n entity_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__entities_entity_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "fqn": ["netsuite_source", "not_null_stg_netsuite2__entities_entity_id"], "alias": "not_null_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1091552, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__entities", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__entities_entity_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect entity_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee", "fqn": ["netsuite_source", "unique_stg_netsuite2__items_item_id"], "alias": "unique_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1101499, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__items_item_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "fqn": ["netsuite_source", "not_null_stg_netsuite2__items_item_id"], "alias": "not_null_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1112928, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__items", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__items_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__jobs_job_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c", "fqn": ["netsuite_source", "unique_stg_netsuite2__jobs_job_id"], "alias": "unique_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.112287, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__jobs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__jobs_job_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n job_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__jobs_job_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "fqn": ["netsuite_source", "not_null_stg_netsuite2__jobs_job_id"], "alias": "not_null_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.113277, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__jobs", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__jobs_job_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149", "fqn": ["netsuite_source", "unique_stg_netsuite2__locations_location_id"], "alias": "unique_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1144152, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__locations_location_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "fqn": ["netsuite_source", "not_null_stg_netsuite2__locations_location_id"], "alias": "not_null_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.115426, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__locations", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__locations_location_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229", "fqn": ["netsuite_source", "unique_stg_netsuite2__subsidiaries_subsidiary_id"], "alias": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1164238, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "fqn": ["netsuite_source", "not_null_stg_netsuite2__subsidiaries_subsidiary_id"], "alias": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.117444, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id"], "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc"}, "created_at": 1699563836.1185632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id"], "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54"}, "created_at": 1699563836.11957, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines", "attached_node": "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_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"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6"}, "created_at": 1699563836.1205812, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_accounting_lines", "package": null, "version": null}], "sources": [], "metrics": [], "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"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_accounting_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_line_id"], "alias": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1233401, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__transaction_lines_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_id"], "alias": "not_null_stg_netsuite2__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.124355, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_lines", "attached_node": "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_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"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id", "resource_type": "test", "package_name": "netsuite_source", "path": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "fqn": ["netsuite_source", "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": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145"}, "created_at": 1699563836.1255271, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145\") }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transaction_lines", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_lines", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4", "fqn": ["netsuite_source", "unique_stg_netsuite2__transactions_transaction_id"], "alias": "unique_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.127902, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__transactions_transaction_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transactions_transaction_id"], "alias": "not_null_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.129051, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__transactions", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transactions_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendor_categories_vendor_category_id"], "alias": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1300669, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendor_categories", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_category_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendor_categories_vendor_category_id"], "alias": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.131089, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendor_categories", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_category_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_stg_netsuite2__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "unique_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendors_vendor_id"], "alias": "unique_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1322398, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_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": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors", "attached_node": "model.netsuite_source.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}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_stg_netsuite2__vendors_vendor_id", "resource_type": "test", "package_name": "netsuite_source", "path": "not_null_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendors_vendor_id"], "alias": "not_null_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.1332412, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_netsuite2__vendors", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendors_vendor_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors", "attached_node": "model.netsuite_source.stg_netsuite2__vendors"}, "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite__balance_sheet_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__balance_sheet_transaction_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e", "fqn": ["netsuite", "not_null_netsuite__balance_sheet_transaction_id"], "alias": "not_null_netsuite__balance_sheet_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.218487, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__balance_sheet_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__balance_sheet\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite__balance_sheet", "attached_node": "model.netsuite.netsuite__balance_sheet"}, "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite__balance_sheet_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__balance_sheet_transaction_line_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32", "fqn": ["netsuite", "not_null_netsuite__balance_sheet_transaction_line_id"], "alias": "not_null_netsuite__balance_sheet_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.219527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__balance_sheet_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__balance_sheet\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite__balance_sheet", "attached_node": "model.netsuite.netsuite__balance_sheet"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id", "accounting_period_id", "account_name"], "model": "{{ get_where_subquery(ref('netsuite__balance_sheet')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name"], "alias": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876"}, "created_at": 1699563836.220541, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876\") }}", "language": "sql", "refs": [{"name": "netsuite__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/dbt_utils_unique_combination_o_7970f673b9a4027f67a3aca93efcc876.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id, accounting_period_id, account_name\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__balance_sheet\"\n group by transaction_line_id, transaction_id, accounting_period_id, account_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite__balance_sheet", "attached_node": "model.netsuite.netsuite__balance_sheet"}, "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite__income_statement_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__income_statement_transaction_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d", "fqn": ["netsuite", "not_null_netsuite__income_statement_transaction_id"], "alias": "not_null_netsuite__income_statement_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.223216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__income_statement_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__income_statement\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite__income_statement", "attached_node": "model.netsuite.netsuite__income_statement"}, "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite__income_statement_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__income_statement_transaction_line_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80", "fqn": ["netsuite", "not_null_netsuite__income_statement_transaction_line_id"], "alias": "not_null_netsuite__income_statement_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.224231, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__income_statement_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__income_statement\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite__income_statement", "attached_node": "model.netsuite.netsuite__income_statement"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id", "accounting_period_id", "account_name"], "model": "{{ get_where_subquery(ref('netsuite__income_statement')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name"], "alias": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920"}, "created_at": 1699563836.225378, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920\") }}", "language": "sql", "refs": [{"name": "netsuite__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/dbt_utils_unique_combination_o_e1b1870ac3303d2145cece8d5652f920.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id, accounting_period_id, account_name\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__income_statement\"\n group by transaction_line_id, transaction_id, accounting_period_id, account_name\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite__income_statement", "attached_node": "model.netsuite.netsuite__income_statement"}, "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite__transaction_details_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__transaction_details_transaction_line_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3", "fqn": ["netsuite", "not_null_netsuite__transaction_details_transaction_line_id"], "alias": "not_null_netsuite__transaction_details_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.22786, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__transaction_details_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__transaction_details\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite__transaction_details_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite__transaction_details_transaction_id.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58", "fqn": ["netsuite", "not_null_netsuite__transaction_details_transaction_id"], "alias": "not_null_netsuite__transaction_details_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563836.228883, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/not_null_netsuite__transaction_details_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__transaction_details\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096": {"test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Accounts Receivable", "Bank", "Deferred Expense", "Fixed Asset", "Other Asset", "Other Current Asset", "Unbilled Receivable", "Prepaid Expense", "Cost of Goods Sold", "Expense", "Other Expense", "Income", "Other Income", "Accounts Payable", "Credit Card", "Deferred Revenue", "Long Term Liability", "Other Current Liability", "Equity", "Retained Earnings", "Net Income", "Non Posting", "Statistical"], "column_name": "account_type_name", "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical", "resource_type": "test", "package_name": "netsuite", "path": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096", "fqn": ["netsuite", "accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical"], "alias": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "warn", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"severity": "warn", "alias": "accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd"}, "created_at": 1699563836.230131, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(severity=\"warn\",alias=\"accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd\") }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/accepted_values_netsuite__tran_7c1f4473b957bed19f56607b396ee6cd.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n account_type_name as value_field,\n count(*) as n_records\n\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__transaction_details\"\n group by account_type_name\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Accounts Receivable','Bank','Deferred Expense','Fixed Asset','Other Asset','Other Current Asset','Unbilled Receivable','Prepaid Expense','Cost of Goods Sold','Expense','Other Expense','Income','Other Income','Accounts Payable','Credit Card','Deferred Revenue','Long Term Liability','Other Current Liability','Equity','Retained Earnings','Net Income','Non Posting','Statistical'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "account_type_name", "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_line_id", "transaction_id"], "model": "{{ get_where_subquery(ref('netsuite__transaction_details')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197.sql", "original_file_path": "models/netsuite.yml", "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400", "fqn": ["netsuite", "dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id"], "alias": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197"}, "created_at": 1699563836.2383091, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197\") }}", "language": "sql", "refs": [{"name": "netsuite__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite.yml/dbt_utils_unique_combination_o_cbb045e0be6cea2f764377f505e35197.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_line_id, transaction_id\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite__transaction_details\"\n group by transaction_line_id, transaction_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.netsuite__transaction_details", "attached_node": "model.netsuite.netsuite__transaction_details"}, "model.netsuite.netsuite2__income_statement": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite2__income_statement", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/netsuite2__income_statement.sql", "original_file_path": "models/netsuite2/netsuite2__income_statement.sql", "unique_id": "model.netsuite.netsuite2__income_statement", "fqn": ["netsuite", "netsuite2", "netsuite2__income_statement"], "alias": "netsuite2__income_statement", "checksum": {"name": "sha256", "checksum": "61f4fba4b63c377da39a5761498bc61995780128d3f0cf914ff41052de2d0596"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The income statement query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the income statement. It also joins in class, department and location information for enhanced reporting. \n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Boolean field, indicating whether or not the selected accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Boolean field, indicating whether or not the selected accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "The unique identifier of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number_and_name": {"name": "account_number_and_name", "description": "Concatenation of account number and account name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_full_name": {"name": "location_full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_full_name": {"name": "department_full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_statement_sort_helper": {"name": "income_statement_sort_helper", "description": "Helper column for sorting income statement records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_full_name": {"name": "subsidiary_full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "The name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "to_subsidiary_name": {"name": "to_subsidiary_name", "description": "The subsidiary name which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "to_subsidiary_currency_symbol": {"name": "to_subsidiary_currency_symbol", "description": "Currency symbol for the consolidated exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "income_statement_id": {"name": "income_statement_id", "description": "Surrogate key hashed on `transaction_line_id`, `transaction_id`, `accounting_period_id`, and `account_name`. Adds `to_subsidiary_id` if using subsidiaries and `accounting_book_id` if using multibook accounting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563990.263024, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__income_statement\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ ref('int_netsuite2__tran_with_converted_amounts') }}\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n{% if var('income_statement_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite2__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ ref('int_netsuite2__transaction_lines') }}\n),\n\nclasses as (\n select * \n from {{ var('netsuite2_classes') }}\n),\n\nlocations as (\n select * \n from {{ var('netsuite2_locations') }}\n),\n\ndepartments as (\n select * \n from {{ var('netsuite2_departments') }}\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n transactions_with_converted_amounts.accounting_book_id,\n transactions_with_converted_amounts.accounting_book_name,\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n {% endif %}\n\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_type_id,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n {{ dbt.concat(['accounts.account_number',\"'-'\", 'accounts.name']) }} as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('classes_pass_through_columns', identifier='classes') }},\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.account_type_id) = 'income' then 1\n when lower(accounts.account_type_id) = 'cogs' then 2\n when lower(accounts.account_type_id) = 'expense' then 3\n when lower(accounts.account_type_id) = 'othincome' then 4\n when lower(accounts.account_type_id) = 'othexpense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') %}\n\n , transaction_details.{{ var('income_statement_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n , -converted_amount_using_transaction_accounting_period as converted_amount\n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and transaction_lines.accounting_book_id = transactions_with_converted_amounts.accounting_book_id\n {% endif %}\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n \n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n left join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n {% if var('income_statement_transaction_detail_columns') != []%}\n join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and transaction_details.accounting_book_id = transactions_with_converted_amounts.accounting_book_id\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n and transaction_details.to_subsidiary_id = transactions_with_converted_amounts.to_subsidiary_id\n {% endif %}\n {% endif %}\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n),\n\nsurrogate_key as ( \n {% set surrogate_key_fields = ['transaction_line_id', 'transaction_id', 'accounting_period_id', 'account_name'] %}\n {% do surrogate_key_fields.append('to_subsidiary_id') if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n {% do surrogate_key_fields.append('accounting_book_id') if var('netsuite2__multibook_accounting_enabled', false) %}\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(surrogate_key_fields) }} as income_statement_id\n\n from income_statement\n)\n\nselect *\nfrom surrogate_key", "language": "sql", "refs": [{"name": "int_netsuite2__tran_with_converted_amounts", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}, {"name": "int_netsuite2__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite2__classes", "package": null, "version": null}, {"name": "stg_netsuite2__locations", "package": null, "version": null}, {"name": "stg_netsuite2__departments", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt.concat", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__departments"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/netsuite2__income_statement.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"\n), \n\n--Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__transaction_lines\"\n),\n\nclasses as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__classes\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__locations\"\n),\n\ndepartments as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__departments\"\n),\n\nincome_statement as (\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n\n \n transactions_with_converted_amounts.accounting_book_id,\n transactions_with_converted_amounts.accounting_book_name,\n \n\n \n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n \n\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_type_id,\n accounts.account_id as account_id,\n accounts.account_number,\n subsidiaries.subsidiary_id,\n subsidiaries.full_name as subsidiary_full_name,\n subsidiaries.name as subsidiary_name\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n accounts.account_number || '-' || accounts.name as account_number_and_name,\n classes.full_name as class_full_name\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n locations.full_name as location_full_name,\n departments.full_name as department_full_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n transactions_with_converted_amounts.account_category as account_category,\n case when lower(accounts.account_type_id) = 'income' then 1\n when lower(accounts.account_type_id) = 'cogs' then 2\n when lower(accounts.account_type_id) = 'expense' then 3\n when lower(accounts.account_type_id) = 'othincome' then 4\n when lower(accounts.account_type_id) = 'othexpense' then 5\n else null\n end as income_statement_sort_helper\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n\n , -converted_amount_using_transaction_accounting_period as converted_amount\n \n from transactions_with_converted_amounts\n\n join transaction_lines as transaction_lines\n on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id\n\n \n and transaction_lines.accounting_book_id = transactions_with_converted_amounts.accounting_book_id\n \n\n left join departments \n on departments.department_id = transaction_lines.department_id\n \n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join locations\n on locations.location_id = transaction_lines.location_id\n\n left join classes \n on classes.class_id = transaction_lines.class_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n left join subsidiaries\n on transactions_with_converted_amounts.subsidiary_id = subsidiaries.subsidiary_id\n\n --Below is only used if income statement transaction detail columns are specified dbt_project.yml file.\n \n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n and transactions_with_converted_amounts.is_income_statement\n),\n\nsurrogate_key as ( \n \n \n \n\n select \n *,\n md5(cast(coalesce(cast(transaction_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(accounting_period_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(account_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(to_subsidiary_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(accounting_book_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as income_statement_id\n\n from income_statement\n)\n\nselect *\nfrom surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite2__balance_sheet": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite2__balance_sheet", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/netsuite2__balance_sheet.sql", "original_file_path": "models/netsuite2/netsuite2__balance_sheet.sql", "unique_id": "model.netsuite.netsuite2__balance_sheet", "fqn": ["netsuite", "netsuite2", "netsuite2__balance_sheet"], "alias": "netsuite2__balance_sheet", "checksum": {"name": "sha256", "checksum": "ac48fae011cb71e9468509127aec864af2cd1cf621c0a665f9c1341d8e950224"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The balance sheet query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the balance sheet. Transactions that are not balance sheet transactions are categorized as either Retained Earnings or Net Income. The Cumulative Translation Adjustment total, which in most cases does not have transactions associated with it, is calculated manually in the second part of the query.\n", "columns": {"transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Boolean field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Boolean field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_category": {"name": "account_category", "description": "Category of the account. Options include Asset, Liability, Equity, Expense or Income.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "The unique identifier of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance_sheet_sort_helper": {"name": "balance_sheet_sort_helper", "description": "Helper column for sorting balance sheet records.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "The name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "to_subsidiary_name": {"name": "to_subsidiary_name", "description": "The subsidiary name which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "to_subsidiary_currency_symbol": {"name": "to_subsidiary_currency_symbol", "description": "Currency symbol for the consolidated exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "balance_sheet_id": {"name": "balance_sheet_id", "description": "Surrogate key hashed on `transaction_line_id`, `transaction_id`, `accounting_period_id`, `account_name`, and `account_id`. Adds `to_subsidiary_id` if using subsidiaries and `accounting_book_id` if using multibook accounting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563990.264127, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__balance_sheet\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite2__tran_with_converted_amounts')}}\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n{% if var('balance_sheet_transaction_detail_columns') != []%}\ntransaction_details as (\n select * \n from {{ ref('netsuite2__transaction_details') }}\n), \n{% endif %}\n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n), \n\naccounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n), \n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n transactions_with_converted_amounts.subsidiary_id,\n subsidiaries.name as subsidiary_name,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n transactions_with_converted_amounts.accounting_book_id,\n transactions_with_converted_amounts.accounting_book_name,\n {% endif %}\n \n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n {% endif %}\n\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n when lower(accounts.special_account_type_id) = 'retearnings' then 'Retained Earnings'\n when lower(accounts.special_account_type_id) IN ('cta-e', 'cumultransadj') then 'Cumulative Translation Adjustment'\n else accounts.type_name\n end as account_type_name,\n case\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'net_income'\n when not accounts.is_balancesheet then 'retained_earnings'\n when lower(accounts.special_account_type_id) = 'retearnings' then 'retained_earnings'\n when lower(accounts.special_account_type_id) IN ('cta-e', 'cumultransadj') then 'cumulative_translation_adjustment'\n else accounts.account_type_id\n end as account_type_id,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_id\n end as account_id,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n case\n when not accounts.is_balancesheet and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when not accounts.is_balancesheet then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and not accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and not accounts.is_leftside then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and accounts.is_leftside then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n\n case\n when lower(accounts.account_type_id) = 'bank' then 1\n when lower(accounts.account_type_id) = 'acctrec' then 2\n when lower(accounts.account_type_id) = 'unbilledrec' then 3\n when lower(accounts.account_type_id) = 'othcurrasset' then 4\n when lower(accounts.account_type_id) = 'fixedasset' then 5\n when lower(accounts.account_type_id) = 'othasset' then 6\n when lower(accounts.account_type_id) = 'deferexpense' then 7\n when lower(accounts.account_type_id) = 'acctpay' then 8\n when lower(accounts.account_type_id) = 'credcard' then 9\n when lower(accounts.account_type_id) = 'othcurrliab' then 10\n when lower(accounts.account_type_id) = 'longtermliab' then 11\n when lower(accounts.account_type_id) = 'deferrevenue' then 12\n when lower(accounts.special_account_type_id) = 'retearnings' then 14\n when lower(accounts.special_account_type_id) IN ('cta-e', 'cumultransadj') then 16\n when lower(accounts.account_type_id) = 'equity' then 13\n when (not accounts.is_balancesheet \n and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 15\n when not accounts.is_balancesheet then 14\n else null\n end as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n \n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and transaction_details.accounting_book_id = transactions_with_converted_amounts.accounting_book_id\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n and transaction_details.to_subsidiary_id = transactions_with_converted_amounts.to_subsidiary_id\n {% endif %}\n {% endif %}\n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n left join subsidiaries\n on subsidiaries.subsidiary_id = transactions_with_converted_amounts.subsidiary_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n transactions_with_converted_amounts.subsidiary_id,\n subsidiaries.name as subsidiary_name,\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n transactions_with_converted_amounts.accounting_book_id,\n transactions_with_converted_amounts.accounting_book_name,\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n {% endif %}\n \n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n 'cumulative_translation_adjustment' as account_type_id,\n null as account_id,\n null as account_number,\n\n {% if var('accounts_pass_through_columns') %}\n {% for field in var('accounts_pass_through_columns') %}\n null as {{ field.alias if field.alias else field.name }},\n {% endfor %}\n {% endif %}\n\n case\n when lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') %}\n\n , transaction_details.{{ var('balance_sheet_transaction_detail_columns') | join (\", transaction_details.\")}}\n\n {% endif %}\n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n {% if var('balance_sheet_transaction_detail_columns') != []%}\n left join transaction_details\n on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id\n and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and transaction_details.accounting_book_id = transactions_with_converted_amounts.accounting_book_id\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n and transaction_details.to_subsidiary_id = transactions_with_converted_amounts.to_subsidiary_id\n {% endif %}\n {% endif %}\n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join subsidiaries\n on subsidiaries.subsidiary_id = transactions_with_converted_amounts.subsidiary_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n),\n\nsurrogate_key as ( \n {% set surrogate_key_fields = ['transaction_line_id', 'transaction_id', 'accounting_period_id', 'account_name', 'account_id'] %}\n {% do surrogate_key_fields.append('to_subsidiary_id') if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n {% do surrogate_key_fields.append('accounting_book_id') if var('netsuite2__multibook_accounting_enabled', false) %}\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(surrogate_key_fields) }} as balance_sheet_id\n\n from balance_sheet\n)\n\nselect *\nfrom surrogate_key", "language": "sql", "refs": [{"name": "int_netsuite2__tran_with_converted_amounts", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/netsuite2__balance_sheet.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"\n), \n\n--Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n\n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounts\"\n), \n\naccounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounting_periods\"\n), \n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\nbalance_sheet as ( \n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n transactions_with_converted_amounts.subsidiary_id,\n subsidiaries.name as subsidiary_name,\n\n \n transactions_with_converted_amounts.accounting_book_id,\n transactions_with_converted_amounts.accounting_book_name,\n \n \n \n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n \n\n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n transactions_with_converted_amounts.account_category as account_category,\n case\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n else accounts.name\n end as account_name,\n case\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income'\n when not accounts.is_balancesheet then 'Retained Earnings'\n when lower(accounts.special_account_type_id) = 'retearnings' then 'Retained Earnings'\n when lower(accounts.special_account_type_id) IN ('cta-e', 'cumultransadj') then 'Cumulative Translation Adjustment'\n else accounts.type_name\n end as account_type_name,\n case\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'net_income'\n when not accounts.is_balancesheet then 'retained_earnings'\n when lower(accounts.special_account_type_id) = 'retearnings' then 'retained_earnings'\n when lower(accounts.special_account_type_id) IN ('cta-e', 'cumultransadj') then 'cumulative_translation_adjustment'\n else accounts.account_type_id\n end as account_type_id,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_id\n end as account_id,\n case\n when not accounts.is_balancesheet then null\n else accounts.account_number\n end as account_number\n \n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n case\n when not accounts.is_balancesheet and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when not accounts.is_balancesheet then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and not accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then -converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and accounts.is_leftside and lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n when accounts.is_balancesheet and not accounts.is_leftside then -converted_amount_using_reporting_month\n when accounts.is_balancesheet and accounts.is_leftside then converted_amount_using_reporting_month\n else 0\n end as converted_amount,\n\n case\n when lower(accounts.account_type_id) = 'bank' then 1\n when lower(accounts.account_type_id) = 'acctrec' then 2\n when lower(accounts.account_type_id) = 'unbilledrec' then 3\n when lower(accounts.account_type_id) = 'othcurrasset' then 4\n when lower(accounts.account_type_id) = 'fixedasset' then 5\n when lower(accounts.account_type_id) = 'othasset' then 6\n when lower(accounts.account_type_id) = 'deferexpense' then 7\n when lower(accounts.account_type_id) = 'acctpay' then 8\n when lower(accounts.account_type_id) = 'credcard' then 9\n when lower(accounts.account_type_id) = 'othcurrliab' then 10\n when lower(accounts.account_type_id) = 'longtermliab' then 11\n when lower(accounts.account_type_id) = 'deferrevenue' then 12\n when lower(accounts.special_account_type_id) = 'retearnings' then 14\n when lower(accounts.special_account_type_id) IN ('cta-e', 'cumultransadj') then 16\n when lower(accounts.account_type_id) = 'equity' then 13\n when (not accounts.is_balancesheet \n and date_trunc('year', reporting_accounting_periods.starting_at) = date_trunc('year', transaction_accounting_periods.starting_at) \n and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 15\n when not accounts.is_balancesheet then 14\n else null\n end as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n \n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n\n left join accounts \n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join accounting_periods as transaction_accounting_periods \n on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id\n\n left join subsidiaries\n on subsidiaries.subsidiary_id = transactions_with_converted_amounts.subsidiary_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n\n union all\n\n select\n transactions_with_converted_amounts.transaction_id,\n transactions_with_converted_amounts.transaction_line_id,\n transactions_with_converted_amounts.subsidiary_id,\n subsidiaries.name as subsidiary_name,\n\n \n transactions_with_converted_amounts.accounting_book_id,\n transactions_with_converted_amounts.accounting_book_name,\n \n\n \n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n \n \n reporting_accounting_periods.accounting_period_id as accounting_period_id,\n reporting_accounting_periods.ending_at as accounting_period_ending,\n reporting_accounting_periods.name as accounting_period_name,\n reporting_accounting_periods.is_adjustment as is_accounting_period_adjustment,\n reporting_accounting_periods.is_closed as is_accounting_period_closed,\n 'Equity' as account_category,\n 'Cumulative Translation Adjustment' as account_name,\n 'Cumulative Translation Adjustment' as account_type_name,\n 'cumulative_translation_adjustment' as account_type_id,\n null as account_id,\n null as account_number,\n\n \n\n case\n when lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period\n else converted_amount_using_reporting_month\n end as converted_amount,\n 16 as balance_sheet_sort_helper\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n from transactions_with_converted_amounts\n\n --Below is only used if balance sheet transaction detail columns are specified dbt_project.yml file.\n \n\n left join accounts\n on accounts.account_id = transactions_with_converted_amounts.account_id\n\n left join accounting_periods as reporting_accounting_periods \n on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n\n left join subsidiaries\n on subsidiaries.subsidiary_id = transactions_with_converted_amounts.subsidiary_id\n\n where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)\n and (accounts.is_balancesheet\n or transactions_with_converted_amounts.is_income_statement)\n),\n\nsurrogate_key as ( \n \n \n \n\n select \n *,\n md5(cast(coalesce(cast(transaction_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(accounting_period_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(account_name as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(account_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(to_subsidiary_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(accounting_book_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as balance_sheet_id\n\n from balance_sheet\n)\n\nselect *\nfrom surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.netsuite.netsuite2__transaction_details": {"database": "postgres", "schema": "zz_dbt_catherine_test_2_netsuite", "name": "netsuite2__transaction_details", "resource_type": "model", "package_name": "netsuite", "path": "netsuite2/netsuite2__transaction_details.sql", "original_file_path": "models/netsuite2/netsuite2__transaction_details.sql", "unique_id": "model.netsuite.netsuite2__transaction_details", "fqn": ["netsuite", "netsuite2", "netsuite2__transaction_details"], "alias": "netsuite2__transaction_details", "checksum": {"name": "sha256", "checksum": "d4f193fa879c81da747d52ee5ae357124cd49ec03f7a04d44b8962c3d0225f60"}, "config": {"enabled": true, "alias": null, "schema": "netsuite", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "This table uses Netsuite's core table, transaction_lines, and joins a handful of other tables to add more detail to those line items. For all transactions, you are able to see the associated accounting period, account and subsidiary. Where applicable, you can also see information about the customer, location, item, vendor, and department.\n", "columns": {"transaction_line_id": {"name": "transaction_line_id", "description": "Netsuite internal transaction line ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_memo": {"name": "transaction_memo", "description": "Memo associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_non_posting": {"name": "is_transaction_non_posting", "description": "Boolean field, indicating whether or not the transaction line is non-posting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "Netsuite internal transaction ID.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the transaction (Closed, Pending Billing, Billing, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transaction occurred.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_due_date": {"name": "transaction_due_date", "description": "Timestamp of the date which the transaction is due.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "Type identifier of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_transaction_intercompany_adjustment": {"name": "is_transaction_intercompany_adjustment", "description": "Boolean field, indicating whether or not the transaction is an intercompany transaction or an advanced intercompany transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_ending": {"name": "accounting_period_ending", "description": "End date of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_period_name": {"name": "accounting_period_name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_adjustment": {"name": "is_accounting_period_adjustment", "description": "Boolean field, indicating whether or not the selecting accounting period is an adjustment period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounting_period_closed": {"name": "is_accounting_period_closed", "description": "Boolean field, indicating whether or not the selecting accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_name": {"name": "account_name", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_name": {"name": "account_type_name", "description": "The accounts type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "The unique identifier of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Unique identifier of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_leftside": {"name": "is_account_leftside", "description": "Boolean field indicating whether or not the account is leftside.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_payable": {"name": "is_accounts_payable", "description": "Boolean field indicating whether or not the account type name includes 'accounts payable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_accounts_receivable": {"name": "is_accounts_receivable", "description": "Boolean field indicating whether or not the account type name includes 'accounts receivable'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_account_intercompany": {"name": "is_account_intercompany", "description": "Boolean field indicating whether or not the account type name includes 'intercompany'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_account_name": {"name": "parent_account_name", "description": "Name of the parent account, if parent account relationship exists. Otherwise, the name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_income_account": {"name": "is_income_account", "description": "Boolean field indicating whether or not the account is an income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_expense_account": {"name": "is_expense_account", "description": "Boolean field indicating whether or not the account is an expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_city": {"name": "customer_city", "description": "City where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_state": {"name": "customer_state", "description": "State where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_zipcode": {"name": "customer_zipcode", "description": "Zip Code of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_country": {"name": "customer_country", "description": "Country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_date_first_order": {"name": "customer_date_first_order", "description": "Date customer placed first order.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class_full_name": {"name": "class_full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_name": {"name": "item_name", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item_type_name": {"name": "item_type_name", "description": "Type name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Description of the item for sales purposes.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_name": {"name": "location_name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_city": {"name": "location_city", "description": "City used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_country": {"name": "location_country", "description": "Country used as a location reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_category_name": {"name": "vendor_category_name", "description": "Category name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_name": {"name": "vendor_name", "description": "Name of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor_create_date": {"name": "vendor_create_date", "description": "Date vendor was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_name": {"name": "currency_name", "description": "Name of the currency used.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_symbol": {"name": "currency_symbol", "description": "Symbol used to identify the currency type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department_name": {"name": "department_name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_name": {"name": "subsidiary_name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "converted_amount": {"name": "converted_amount", "description": "Transaction amount, converted into the primary subsidiary's default currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_amount": {"name": "transaction_amount", "description": "Total amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "The name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "to_subsidiary_name": {"name": "to_subsidiary_name", "description": "The subsidiary name which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "to_subsidiary_currency_symbol": {"name": "to_subsidiary_currency_symbol", "description": "Currency symbol for the consolidated exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_details_id": {"name": "transaction_details_id", "description": "Surrogate key hashed on `transaction_line_id` and `transaction_id`. Adds `to_subsidiary_id` if using subsidiaries and `accounting_book_id` if using multibook accounting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite://models/netsuite2.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite", "enabled": true}, "created_at": 1699563990.2703109, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__transaction_details\"", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith transactions_with_converted_amounts as (\n select * \n from {{ref('int_netsuite2__tran_with_converted_amounts')}}\n),\n\naccounts as (\n select * \n from {{ ref('int_netsuite2__accounts') }}\n),\n\naccounting_periods as (\n select * \n from {{ ref('int_netsuite2__accounting_periods') }}\n),\n\nsubsidiaries as (\n select * \n from {{ var('netsuite2_subsidiaries') }}\n),\n\ntransaction_lines as (\n select * \n from {{ ref('int_netsuite2__transaction_lines') }}\n),\n\ntransactions as (\n select * \n from {{ var('netsuite2_transactions') }}\n),\n\ncustomers as (\n select * \n from {{ ref('int_netsuite2__customers') }}\n),\n\nitems as (\n select * \n from {{ var('netsuite2_items') }}\n),\n\nlocations as (\n select * \n from {{ ref('int_netsuite2__locations') }}\n),\n\nvendors as (\n select * \n from {{ var('netsuite2_vendors') }}\n),\n\n{% if var('netsuite2__using_vendor_categories', true) %}\nvendor_categories as (\n select * \n from {{ var('netsuite2_vendor_categories') }}\n),\n{% endif %}\n\ndepartments as (\n select * \n from {{ var('netsuite2_departments') }}\n),\n\ncurrencies as (\n select * \n from {{ var('netsuite2_currencies') }}\n),\n\nclasses as (\n select *\n from {{ var('netsuite2_classes') }}\n),\n\nentities as (\n select *\n from {{ var('netsuite2_entities') }}\n),\n\ntransaction_details as (\n select\n\n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n transaction_lines.accounting_book_id,\n transaction_lines.accounting_book_name,\n {% endif %}\n\n {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n {% endif %}\n \n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n not transaction_lines.is_posting as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n transactions.is_intercompany_adjustment as is_transaction_intercompany_adjustment\n\n --The below script allows for transactions table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transactions_pass_through_columns', identifier='transactions') }}\n\n --The below script allows for transaction lines table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('transaction_lines_pass_through_columns', identifier='transaction_lines') }},\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.name as accounting_period_name,\n accounting_periods.accounting_period_id as accounting_period_id,\n accounting_periods.is_adjustment as is_accounting_period_adjustment,\n accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_type_id,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('accounts_pass_through_columns', identifier='accounts') }},\n\n accounts.is_leftside as is_account_leftside,\n lower(accounts.account_type_id) = 'acctpay' as is_accounts_payable,\n lower(accounts.account_type_id) = 'acctrec' as is_accounts_receivable,\n accounts.is_eliminate as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n lower(accounts.account_type_id) in ('expense', 'othexpense', 'deferexpense') as is_expense_account,\n lower(accounts.account_type_id) in ('income', 'othincome') as is_income_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n {% if var('netsuite2__using_vendor_categories', true) %}\n vendor_categories.name as vendor_category_name,\n {% endif %}\n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }},\n\n subsidiaries.subsidiary_id,\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.account_type_id) in ('income', 'othincome') then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.account_type_id) in ('income', 'othincome') then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n {% if var('netsuite2__multibook_accounting_enabled', false) %}\n and transactions_with_converted_amounts.accounting_book_id = transaction_lines.accounting_book_id\n {% endif %}\n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n\n left join customers \n on customers.customer_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n\n {% if var('netsuite2__using_vendor_categories', true) %}\n left join vendor_categories \n on vendor_categories.vendor_category_id = vendors.vendor_category_id\n {% endif %}\n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n),\n\nsurrogate_key as ( \n {% set surrogate_key_fields = ['transaction_line_id', 'transaction_id'] %}\n {% do surrogate_key_fields.append('to_subsidiary_id') if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %}\n {% do surrogate_key_fields.append('accounting_book_id') if var('netsuite2__multibook_accounting_enabled', false) %}\n\n select \n *,\n {{ dbt_utils.generate_surrogate_key(surrogate_key_fields) }} as transaction_details_id\n\n from transaction_details\n)\n\nselect *\nfrom surrogate_key", "language": "sql", "refs": [{"name": "int_netsuite2__tran_with_converted_amounts", "package": null, "version": null}, {"name": "int_netsuite2__accounts", "package": null, "version": null}, {"name": "int_netsuite2__accounting_periods", "package": null, "version": null}, {"name": "stg_netsuite2__subsidiaries", "package": null, "version": null}, {"name": "int_netsuite2__transaction_lines", "package": null, "version": null}, {"name": "stg_netsuite2__transactions", "package": null, "version": null}, {"name": "int_netsuite2__customers", "package": null, "version": null}, {"name": "stg_netsuite2__items", "package": null, "version": null}, {"name": "int_netsuite2__locations", "package": null, "version": null}, {"name": "stg_netsuite2__vendors", "package": null, "version": null}, {"name": "stg_netsuite2__vendor_categories", "package": null, "version": null}, {"name": "stg_netsuite2__departments", "package": null, "version": null}, {"name": "stg_netsuite2__currencies", "package": null, "version": null}, {"name": "stg_netsuite2__classes", "package": null, "version": null}, {"name": "stg_netsuite2__entities", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.persist_pass_through_columns", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transactions", "model.netsuite.int_netsuite2__customers", "model.netsuite_source.stg_netsuite2__items", "model.netsuite.int_netsuite2__locations", "model.netsuite_source.stg_netsuite2__vendors", "model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__entities"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2/netsuite2__transaction_details.sql", "compiled": true, "compiled_code": "\n\nwith transactions_with_converted_amounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__tran_with_converted_amounts\"\n),\n\naccounts as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounts\"\n),\n\naccounting_periods as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__accounting_periods\"\n),\n\nsubsidiaries as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__subsidiaries\"\n),\n\ntransaction_lines as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__transaction_lines\"\n),\n\ntransactions as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__transactions\"\n),\n\ncustomers as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__customers\"\n),\n\nitems as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__items\"\n),\n\nlocations as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"int_netsuite2__locations\"\n),\n\nvendors as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__vendors\"\n),\n\n\nvendor_categories as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__vendor_categories\"\n),\n\n\ndepartments as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__departments\"\n),\n\ncurrencies as (\n select * \n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__currencies\"\n),\n\nclasses as (\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__classes\"\n),\n\nentities as (\n select *\n from \"postgres\".\"zz_dbt_catherine_test_2_netsuite_source\".\"stg_netsuite2__entities\"\n),\n\ntransaction_details as (\n select\n\n \n transaction_lines.accounting_book_id,\n transaction_lines.accounting_book_name,\n \n\n \n transactions_with_converted_amounts.to_subsidiary_id,\n transactions_with_converted_amounts.to_subsidiary_name,\n transactions_with_converted_amounts.to_subsidiary_currency_symbol,\n \n \n transaction_lines.transaction_line_id,\n transaction_lines.memo as transaction_memo,\n not transaction_lines.is_posting as is_transaction_non_posting,\n transactions.transaction_id,\n transactions.status as transaction_status,\n transactions.transaction_date,\n transactions.due_date_at as transaction_due_date,\n transactions.transaction_type as transaction_type,\n transactions.is_intercompany_adjustment as is_transaction_intercompany_adjustment\n\n --The below script allows for transactions table pass through columns.\n \n\n\n\n\n\n --The below script allows for transaction lines table pass through columns.\n \n\n\n\n,\n\n accounting_periods.ending_at as accounting_period_ending,\n accounting_periods.name as accounting_period_name,\n accounting_periods.accounting_period_id as accounting_period_id,\n accounting_periods.is_adjustment as is_accounting_period_adjustment,\n accounting_periods.is_closed as is_accounting_period_closed,\n accounts.name as account_name,\n accounts.type_name as account_type_name,\n accounts.account_type_id,\n accounts.account_id as account_id,\n accounts.account_number\n\n --The below script allows for accounts table pass through columns.\n \n\n\n\n,\n\n accounts.is_leftside as is_account_leftside,\n lower(accounts.account_type_id) = 'acctpay' as is_accounts_payable,\n lower(accounts.account_type_id) = 'acctrec' as is_accounts_receivable,\n accounts.is_eliminate as is_account_intercompany,\n coalesce(parent_account.name, accounts.name) as parent_account_name,\n lower(accounts.account_type_id) in ('expense', 'othexpense', 'deferexpense') as is_expense_account,\n lower(accounts.account_type_id) in ('income', 'othincome') as is_income_account,\n customers.company_name,\n customers.city as customer_city,\n customers.state as customer_state,\n customers.zipcode as customer_zipcode,\n customers.country as customer_country,\n customers.date_first_order_at as customer_date_first_order,\n customers.customer_external_id,\n classes.full_name as class_full_name,\n items.name as item_name,\n items.type_name as item_type_name,\n items.sales_description,\n locations.name as location_name,\n locations.city as location_city,\n locations.country as location_country,\n \n vendor_categories.name as vendor_category_name,\n \n vendors.company_name as vendor_name,\n vendors.create_date_at as vendor_create_date,\n currencies.name as currency_name,\n currencies.symbol as currency_symbol,\n departments.name as department_name\n\n --The below script allows for departments table pass through columns.\n \n\n\n\n,\n\n subsidiaries.subsidiary_id,\n subsidiaries.name as subsidiary_name,\n case\n when lower(accounts.account_type_id) in ('income', 'othincome') then -converted_amount_using_transaction_accounting_period\n else converted_amount_using_transaction_accounting_period\n end as converted_amount,\n case\n when lower(accounts.account_type_id) in ('income', 'othincome') then -transaction_lines.amount\n else transaction_lines.amount\n end as transaction_amount\n from transaction_lines\n\n join transactions\n on transactions.transaction_id = transaction_lines.transaction_id\n\n left join transactions_with_converted_amounts as transactions_with_converted_amounts\n on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id\n and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id\n and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id\n \n \n and transactions_with_converted_amounts.accounting_book_id = transaction_lines.accounting_book_id\n \n\n left join accounts \n on accounts.account_id = transaction_lines.account_id\n\n left join accounts as parent_account \n on parent_account.account_id = accounts.parent_id\n\n left join accounting_periods \n on accounting_periods.accounting_period_id = transactions.accounting_period_id\n\n left join customers \n on customers.customer_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n \n left join classes\n on classes.class_id = transaction_lines.class_id\n\n left join items \n on items.item_id = transaction_lines.item_id\n\n left join locations \n on locations.location_id = transaction_lines.location_id\n\n left join vendors \n on vendors.vendor_id = coalesce(transaction_lines.entity_id, transactions.entity_id)\n\n \n left join vendor_categories \n on vendor_categories.vendor_category_id = vendors.vendor_category_id\n \n\n left join currencies \n on currencies.currency_id = transactions.currency_id\n\n left join departments \n on departments.department_id = transaction_lines.department_id\n\n join subsidiaries \n on subsidiaries.subsidiary_id = transaction_lines.subsidiary_id\n \n where (accounting_periods.fiscal_calendar_id is null\n or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null))\n),\n\nsurrogate_key as ( \n \n \n \n\n select \n *,\n md5(cast(coalesce(cast(transaction_line_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(transaction_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(to_subsidiary_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(accounting_book_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as transaction_details_id\n\n from transaction_details\n)\n\nselect *\nfrom surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__income_statement_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__income_statement_transaction_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef", "fqn": ["netsuite", "not_null_netsuite2__income_statement_transaction_id"], "alias": "not_null_netsuite2__income_statement_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.275719, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__income_statement_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__income_statement\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__income_statement_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__income_statement_transaction_line_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706", "fqn": ["netsuite", "not_null_netsuite2__income_statement_transaction_line_id"], "alias": "not_null_netsuite2__income_statement_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.276844, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__income_statement_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__income_statement\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.unique_netsuite2__income_statement_income_statement_id.20a530fc68": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "income_statement_id", "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_netsuite2__income_statement_income_statement_id", "resource_type": "test", "package_name": "netsuite", "path": "unique_netsuite2__income_statement_income_statement_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.unique_netsuite2__income_statement_income_statement_id.20a530fc68", "fqn": ["netsuite", "unique_netsuite2__income_statement_income_statement_id"], "alias": "unique_netsuite2__income_statement_income_statement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.277876, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/unique_netsuite2__income_statement_income_statement_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n income_statement_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__income_statement\"\nwhere income_statement_id is not null\ngroup by income_statement_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "income_statement_id", "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.not_null_netsuite2__income_statement_income_statement_id.4c1a7c959e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "income_statement_id", "model": "{{ get_where_subquery(ref('netsuite2__income_statement')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__income_statement_income_statement_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__income_statement_income_statement_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__income_statement_income_statement_id.4c1a7c959e", "fqn": ["netsuite", "not_null_netsuite2__income_statement_income_statement_id"], "alias": "not_null_netsuite2__income_statement_income_statement_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.278909, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__income_statement", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__income_statement"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__income_statement_income_statement_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect income_statement_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__income_statement\"\nwhere income_statement_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "income_statement_id", "file_key_name": "models.netsuite2__income_statement", "attached_node": "model.netsuite.netsuite2__income_statement"}, "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__balance_sheet_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__balance_sheet_transaction_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1", "fqn": ["netsuite", "not_null_netsuite2__balance_sheet_transaction_id"], "alias": "not_null_netsuite2__balance_sheet_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.301926, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__balance_sheet_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__balance_sheet\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__balance_sheet_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__balance_sheet_transaction_line_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9", "fqn": ["netsuite", "not_null_netsuite2__balance_sheet_transaction_line_id"], "alias": "not_null_netsuite2__balance_sheet_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.302969, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__balance_sheet_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__balance_sheet\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.unique_netsuite2__balance_sheet_balance_sheet_id.8bb14ebf4a": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "balance_sheet_id", "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_netsuite2__balance_sheet_balance_sheet_id", "resource_type": "test", "package_name": "netsuite", "path": "unique_netsuite2__balance_sheet_balance_sheet_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.unique_netsuite2__balance_sheet_balance_sheet_id.8bb14ebf4a", "fqn": ["netsuite", "unique_netsuite2__balance_sheet_balance_sheet_id"], "alias": "unique_netsuite2__balance_sheet_balance_sheet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.304119, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/unique_netsuite2__balance_sheet_balance_sheet_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n balance_sheet_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__balance_sheet\"\nwhere balance_sheet_id is not null\ngroup by balance_sheet_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "balance_sheet_id", "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.not_null_netsuite2__balance_sheet_balance_sheet_id.0e299c6c01": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "balance_sheet_id", "model": "{{ get_where_subquery(ref('netsuite2__balance_sheet')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__balance_sheet_balance_sheet_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__balance_sheet_balance_sheet_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_balance_sheet_id.0e299c6c01", "fqn": ["netsuite", "not_null_netsuite2__balance_sheet_balance_sheet_id"], "alias": "not_null_netsuite2__balance_sheet_balance_sheet_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.30514, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__balance_sheet", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__balance_sheet"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__balance_sheet_balance_sheet_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect balance_sheet_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__balance_sheet\"\nwhere balance_sheet_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "balance_sheet_id", "file_key_name": "models.netsuite2__balance_sheet", "attached_node": "model.netsuite.netsuite2__balance_sheet"}, "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__transaction_details_transaction_line_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__transaction_details_transaction_line_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36", "fqn": ["netsuite", "not_null_netsuite2__transaction_details_transaction_line_id"], "alias": "not_null_netsuite2__transaction_details_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.306165, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__transaction_details_transaction_line_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__transaction_details\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_line_id", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__transaction_details_transaction_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__transaction_details_transaction_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79", "fqn": ["netsuite", "not_null_netsuite2__transaction_details_transaction_id"], "alias": "not_null_netsuite2__transaction_details_transaction_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.307179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__transaction_details_transaction_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__transaction_details\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_id", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.unique_netsuite2__transaction_details_transaction_details_id.cb70f22d04": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_details_id", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "unique_netsuite2__transaction_details_transaction_details_id", "resource_type": "test", "package_name": "netsuite", "path": "unique_netsuite2__transaction_details_transaction_details_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.unique_netsuite2__transaction_details_transaction_details_id.cb70f22d04", "fqn": ["netsuite", "unique_netsuite2__transaction_details_transaction_details_id"], "alias": "unique_netsuite2__transaction_details_transaction_details_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.308297, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/unique_netsuite2__transaction_details_transaction_details_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n transaction_details_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__transaction_details\"\nwhere transaction_details_id is not null\ngroup by transaction_details_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_details_id", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}, "test.netsuite.not_null_netsuite2__transaction_details_transaction_details_id.a24a6eb6c0": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_details_id", "model": "{{ get_where_subquery(ref('netsuite2__transaction_details')) }}"}, "namespace": null}, "database": "postgres", "schema": "zz_dbt_catherine_test_2_dbt_test__audit", "name": "not_null_netsuite2__transaction_details_transaction_details_id", "resource_type": "test", "package_name": "netsuite", "path": "not_null_netsuite2__transaction_details_transaction_details_id.sql", "original_file_path": "models/netsuite2.yml", "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_details_id.a24a6eb6c0", "fqn": ["netsuite", "not_null_netsuite2__transaction_details_transaction_details_id"], "alias": "not_null_netsuite2__transaction_details_transaction_details_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1699563990.3093262, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "netsuite2__transaction_details", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite.netsuite2__transaction_details"]}, "compiled_path": "target/compiled/netsuite/models/netsuite2.yml/not_null_netsuite2__transaction_details_transaction_details_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect transaction_details_id\nfrom \"postgres\".\"zz_dbt_catherine_test_2_netsuite\".\"netsuite2__transaction_details\"\nwhere transaction_details_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "transaction_details_id", "file_key_name": "models.netsuite2__transaction_details", "attached_node": "model.netsuite.netsuite2__transaction_details"}}, "sources": {"source.netsuite_source.netsuite2.account_type": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "account_type", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.account_type", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "account_type"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_type_data", "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "longname": {"name": "longname", "description": "The name of the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_account_type_data\"", "created_at": 1699563836.240816}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounting_book_subsidiaries", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book_subsidiaries"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_sub_data", "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_book_sub_data\"", "created_at": 1699563836.2409532}, "source.netsuite_source.netsuite2.accounting_book": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounting_book", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_book", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "basebook": {"name": "basebook", "description": "Reference to the base book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effectiveperiod": {"name": "effectiveperiod", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_book_data\"", "created_at": 1699563836.241087}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounting_period_fiscal_calendars", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period_fiscal_calendars"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_fiscal_cal_data", "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_period_fiscal_cal_data\"", "created_at": 1699563836.2412028}, "source.netsuite_source.netsuite2.accounting_period": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounting_period", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.accounting_period", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "periodname": {"name": "periodname", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "startdate": {"name": "startdate", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "enddate": {"name": "enddate", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closedondate": {"name": "closedondate", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_accounting_period_data\"", "created_at": 1699563836.241333}, "source.netsuite_source.netsuite2.account": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "account", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.account", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "account"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external account,", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "acctnumber": {"name": "acctnumber", "description": "Netsuite generated account number.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accttype": {"name": "accttype", "description": "Reference to the account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sspecacct": {"name": "sspecacct", "description": "Special account type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferralacct": {"name": "deferralacct", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "cashflowrate": {"name": "cashflowrate", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "generalrate": {"name": "generalrate", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "eliminate": {"name": "eliminate", "description": "Indicates this is an intercompany account used only to record transactions between subsidiaries. Amounts posted to intercompany accounts are eliminated when you run the intercompany elimination process at the end of an accounting period. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_account_data\"", "created_at": 1699563836.241466}, "source.netsuite_source.netsuite2.classification": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "classification", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.classification", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "classification"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_classification_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the class.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_classification_data\"", "created_at": 1699563836.241584}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "consolidated_exchange_rate", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "consolidated_exchange_rate"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_consolidated_exchange_rate_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "fromcurrency": {"name": "fromcurrency", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fromsubsidiary": {"name": "fromsubsidiary", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tocurrency": {"name": "tocurrency", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tosubsidiary": {"name": "tosubsidiary", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currentrate": {"name": "currentrate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "averagerate": {"name": "averagerate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historicalrate": {"name": "historicalrate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_consolidated_exchange_rate_data\"", "created_at": 1699563836.241704}, "source.netsuite_source.netsuite2.currency": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "currency", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.currency", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "currency"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_currency_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_currency_data\"", "created_at": 1699563836.241812}, "source.netsuite_source.netsuite2.customer": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "customer", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.customer", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "customer"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_customer_data", "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, "constraints": [], "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "firstname": {"name": "firstname", "description": "First name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "lastname": {"name": "lastname", "description": "Last name of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Customers email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "receivablesaccount": {"name": "receivablesaccount", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "firstorderdate": {"name": "firstorderdate", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_customer_data\"", "created_at": 1699563836.2421188}, "source.netsuite_source.netsuite2.department": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "department", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.department", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "department"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_department_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_department_data\"", "created_at": 1699563836.242241}, "source.netsuite_source.netsuite2.entity": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "entity", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.entity", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entities_data", "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, "constraints": [], "quote": null, "tags": []}, "contact": {"name": "contact", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee": {"name": "employee", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entitytitle": {"name": "entitytitle", "description": "The entity name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Value indicating whether the entity is a person (either yes or no).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "project": {"name": "project", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "The unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_entities_data\"", "created_at": 1699563836.242359}, "source.netsuite_source.netsuite2.entity_address": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "entity_address", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.entity_address", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity_address"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entity_address_data", "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_entity_address_data\"", "created_at": 1699563836.2424781}, "source.netsuite_source.netsuite2.item": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "item", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.item", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "item"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_item_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "itemtype": {"name": "itemtype", "description": "Item type name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "assetaccount": {"name": "assetaccount", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expenseaccount": {"name": "expenseaccount", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gainlossaccount": {"name": "gainlossaccount", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "incomeaccount": {"name": "incomeaccount", "description": "Reference to the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intercoexpenseaccount": {"name": "intercoexpenseaccount", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "intercoincomeaccount": {"name": "intercoincomeaccount", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferralaccount": {"name": "deferralaccount", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "deferredrevenueaccount": {"name": "deferredrevenueaccount", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_item_data\"", "created_at": 1699563836.242605}, "source.netsuite_source.netsuite2.job": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "job", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.job", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "job"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_job_data", "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, "constraints": [], "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "Reference the the entity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Default billing address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Default shipping address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_job_data\"", "created_at": 1699563836.242718}, "source.netsuite_source.netsuite2.location_main_address": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "location_main_address", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.location_main_address", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "location_main_address"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_main_address_data", "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, "constraints": [], "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_location_main_address_data\"", "created_at": 1699563836.242837}, "source.netsuite_source.netsuite2.location": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "location", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.location", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "location"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_location_data\"", "created_at": 1699563836.24295}, "source.netsuite_source.netsuite2.subsidiary": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "subsidiary", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.subsidiary", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "subsidiary"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_subsidiary_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_subsidiary_data\"", "created_at": 1699563836.243066}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "transaction_accounting_line", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_accounting_line"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_tran_acct_line_data", "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, "constraints": [], "quote": null, "tags": []}, "transactionline": {"name": "transactionline", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "netamount": {"name": "netamount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account": {"name": "account", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "debit": {"name": "debit", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amountpaid": {"name": "amountpaid", "description": "Total amount paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "amountunpaid": {"name": "amountunpaid", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_tran_acct_line_data\"", "created_at": 1699563836.2431831}, "source.netsuite_source.netsuite2.transaction_line": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "transaction_line", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.transaction_line", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_line"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_line_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction": {"name": "transaction", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "linesequencenumber": {"name": "linesequencenumber", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "item": {"name": "item", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_transaction_line_data\"", "created_at": 1699563836.243346}, "source.netsuite_source.netsuite2.transaction": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "transaction", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.transaction", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transactionnumber": {"name": "transactionnumber", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "createddate": {"name": "createddate", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "duedate": {"name": "duedate", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closedate": {"name": "closedate", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_transaction_data\"", "created_at": 1699563836.2434719}, "source.netsuite_source.netsuite2.vendor_category": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "vendor_category", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.vendor_category", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor_category"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_category_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_vendor_category_data\"", "created_at": 1699563836.2435782}, "source.netsuite_source.netsuite2.vendor": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "vendor", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "unique_id": "source.netsuite_source.netsuite2.vendor", "fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor"], "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_data", "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, "constraints": [], "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "datecreated": {"name": "datecreated", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "category": {"name": "category", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite2_vendor_data\"", "created_at": 1699563836.243695}, "source.netsuite_source.netsuite.accounting_books": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounting_books", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.accounting_books", "fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_books"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_books_data", "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, "constraints": [], "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounting_books_data\"", "created_at": 1699563836.243802}, "source.netsuite_source.netsuite.accounting_periods": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounting_periods", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.accounting_periods", "fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_periods"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_periods_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "starting": {"name": "starting", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ending": {"name": "ending", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounting_periods_data\"", "created_at": 1699563836.2439208}, "source.netsuite_source.netsuite.accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "accounts", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.accounts", "fqn": ["netsuite_source", "netsuite", "netsuite", "accounts"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounts_data", "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, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "accountingnumber": {"name": "accountingnumber", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_accounts_data\"", "created_at": 1699563836.244035}, "source.netsuite_source.netsuite.classes": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "classes", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.classes", "fqn": ["netsuite_source", "netsuite", "netsuite", "classes"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_classes_data", "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_classes_data\"", "created_at": 1699563836.244139}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "consolidated_exchange_rates", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates", "fqn": ["netsuite_source", "netsuite", "netsuite", "consolidated_exchange_rates"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_consolidated_exchange_rates_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_consolidated_exchange_rates_data\"", "created_at": 1699563836.24425}, "source.netsuite_source.netsuite.currencies": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "currencies", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.currencies", "fqn": ["netsuite_source", "netsuite", "netsuite", "currencies"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_currencies_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_currencies_data\"", "created_at": 1699563836.2443578}, "source.netsuite_source.netsuite.customers": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "customers", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.customers", "fqn": ["netsuite_source", "netsuite", "netsuite", "customers"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_customers_data", "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, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The name of the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "customer_extid": {"name": "customer_extid", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_first_order": {"name": "date_first_order", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_customers_data\"", "created_at": 1699563836.244473}, "source.netsuite_source.netsuite.departments": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "departments", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.departments", "fqn": ["netsuite_source", "netsuite", "netsuite", "departments"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_departments_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_departments_data\"", "created_at": 1699563836.24458}, "source.netsuite_source.netsuite.expense_accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "expense_accounts", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.expense_accounts", "fqn": ["netsuite_source", "netsuite", "netsuite", "expense_accounts"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_expense_accounts_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_expense_accounts_data\"", "created_at": 1699563836.2447171}, "source.netsuite_source.netsuite.income_accounts": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "income_accounts", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.income_accounts", "fqn": ["netsuite_source", "netsuite", "netsuite", "income_accounts"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_income_accounts_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_income_accounts_data\"", "created_at": 1699563836.2448268}, "source.netsuite_source.netsuite.items": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "items", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.items", "fqn": ["netsuite_source", "netsuite", "netsuite", "items"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_items_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "salesdescription": {"name": "salesdescription", "description": "The items sales description.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_items_data\"", "created_at": 1699563836.2449348}, "source.netsuite_source.netsuite.locations": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "locations", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.locations", "fqn": ["netsuite_source", "netsuite", "netsuite", "locations"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_locations_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_locations_data\"", "created_at": 1699563836.245045}, "source.netsuite_source.netsuite.subsidiaries": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "subsidiaries", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.subsidiaries", "fqn": ["netsuite_source", "netsuite", "netsuite", "subsidiaries"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_subsidiaries_data", "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_subsidiaries_data\"", "created_at": 1699563836.245155}, "source.netsuite_source.netsuite.transaction_lines": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "transaction_lines", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.transaction_lines", "fqn": ["netsuite_source", "netsuite", "netsuite", "transaction_lines"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transaction_lines_data", "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, "constraints": [], "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_transaction_lines_data\"", "created_at": 1699563836.245291}, "source.netsuite_source.netsuite.transactions": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "transactions", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.transactions", "fqn": ["netsuite_source", "netsuite", "netsuite", "transactions"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transactions_data", "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, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_transactions_data\"", "created_at": 1699563836.2454069}, "source.netsuite_source.netsuite.vendor_types": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "vendor_types", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.vendor_types", "fqn": ["netsuite_source", "netsuite", "netsuite", "vendor_types"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendor_types_data", "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, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_vendor_types_data\"", "created_at": 1699563836.245514}, "source.netsuite_source.netsuite.vendors": {"database": "postgres", "schema": "zz_dbt_catherine_test_2", "name": "vendors", "resource_type": "source", "package_name": "netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "unique_id": "source.netsuite_source.netsuite.vendors", "fqn": ["netsuite_source", "netsuite", "netsuite", "vendors"], "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendors_data", "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, "constraints": [], "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The vendor's company name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "constraints": [], "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, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"zz_dbt_catherine_test_2\".\"netsuite_vendors_data\"", "created_at": 1699563836.245622}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0102699, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.010539, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0106611, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0107808, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.010897, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.012046, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.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', 'm')\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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.012716, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.021918, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.022465, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.022816, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0231512, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.023666, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.024128, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0243142, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0246882, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.025194, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0261, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.026304, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.026634, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.0269141, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.027355, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.027591, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.028219, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.028439, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.028564, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.028758, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.028903, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.030947, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.031264, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_materialized_view_as_sql": {"name": "postgres__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- get_create_materialized_view_as_sql(intermediate_relation, sql) -}}\n\n {% if existing_relation is not none %}\n alter materialized view {{ existing_relation }} rename to {{ backup_relation.include(database=False, schema=False) }};\n {% endif %}\n\n alter materialized view {{ intermediate_relation }} rename to {{ relation.include(database=False, schema=False) }};\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0317152, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.032019, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0321321, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.032618, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/materialized_view.sql", "original_file_path": "macros/materializations/materialized_view.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.032877, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.033269, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0339992, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.034228, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.034944, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.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 %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.038233, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.038393, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.0389152, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.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 %}", "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": 1699563834.039331, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.040446, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.040648, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0407932, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.040936, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0410812, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.041457, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.041762, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0420759, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0425248, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.042798, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.04644, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0466151, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.046844, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.047578, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "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": 1699563834.047745, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0479329, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) 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 %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0493639, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.050745, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.054893, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.05519, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0553799, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.055477, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.055637, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.055768, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.05598, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0568771, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.057069, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.057326, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.0577621, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.0639958, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.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 -%}", "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": 1699563834.0661051, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.066568, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.066884, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.067271, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.067659, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0692742, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.069835, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0705101, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.070751, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.071488, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.077934, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_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 %}", "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": 1699563834.079637, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "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": 1699563834.079909, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\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 {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\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 %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.08093, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.081205, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0818748, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0825238, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.083422, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.083667, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.083858, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.084159, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.084349, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.084652, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.084846, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.08512, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.0853078, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0854652, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.0857549, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.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('predicates', none) or 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, 'incremental_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 %}", "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": 1699563834.0908759, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.096569, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.0978198, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.099128, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.1000261, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1051068, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.105512, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.105776, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_materialized_view_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.107142, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.107382, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\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{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "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": 1699563834.108059, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.108499, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.10865, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.109149, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.109344, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1096609, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.109803, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_as_sql": {"name": "get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.get_replace_materialized_view_as_sql", "macro_sql": "{% macro get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- log('Applying REPLACE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_replace_materialized_view_as_sql', 'dbt')(relation, sql, existing_relation, backup_relation, intermediate_relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.110232, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_as_sql": {"name": "default__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_as_sql", "macro_sql": "{% macro default__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.11041, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.110753, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.110966, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.111202, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1113222, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.111616, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.111752, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\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 {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "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": 1699563834.114979, "supported_languages": ["sql"]}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1160371, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.11616, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.116715, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.116888, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.117038, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.118349, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1187358, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1190941, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "unique_id": "macro.dbt.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 /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\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 %}", "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": 1699563834.122102, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.1229901, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.123179, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.123625, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.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 {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.124338, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.124809, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.125001, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.125186, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "unique_id": "macro.dbt.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 /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\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 -%}", "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": 1699563834.128126, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.128453, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1286778, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "unique_id": "macro.dbt.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=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "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": 1699563834.1302242, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.130651, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.130817, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.131001, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.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 }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.131434, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.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 comparison 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 %}", "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": 1699563834.134884, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.139989, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.140909, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.141152, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.141644, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.14184, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.141975, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.142118, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.142239, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.142405, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.142524, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.143012, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.143206, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.144518, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.144955, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1453462, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1458821, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.146154, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.146446, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.146847, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.147104, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.147462, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.147766, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.148017, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1485991, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1501079, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.150768, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.151071, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.152918, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.154125, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.154895, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.155137, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1553721, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.155452, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.155787, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.15596, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.156209, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.156338, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1565921, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.156699, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1570408, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.157213, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.157442, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1575198, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.157791, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1579351, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.15824, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.158449, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.159094, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.159515, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.159856, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.160022, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.160311, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.160453, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.160713, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.160875, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.16112, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.161281, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.161531, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.161637, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.161928, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1620648, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1623092, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1624162, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.16337, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.163529, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.163758, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.163917, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.164083, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.16424, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.164407, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.164591, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.164757, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.164911, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1650739, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.165226, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.16539, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.165542, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.165826, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.165963, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.166214, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1663208, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.166666, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.16694, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.167094, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.167628, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.167797, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.168094, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.168375, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1685061, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.168885, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.169132, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.169417, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1695528, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.169933, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.170124, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1702971, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.170484, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1709728, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.171125, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1712708, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.171378, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1715462, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.171626, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.171795, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.1719701, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.172815, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.173022, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.173185, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.173599, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.173789, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1739268, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1740842, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.174216, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.177003, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.177172, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.177401, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.177699, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.177944, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.178273, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.17846, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.178625, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.178828, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.179113, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1793642, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.179989, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.180226, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.180372, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1805701, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.18099, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.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')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.18141, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.181695, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1819232, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.183637, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1837592, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.1839309, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1840482, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1843982, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "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": 1699563834.184591, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.184698, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.18493, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.185125, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.185358, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.185555, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.185792, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.1865568, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.186752, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.187001, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.187237, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.188412, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.188949, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.189149, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1892931, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1899781, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.190154, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.190364, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.190537, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1908128, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.1913102, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.19282, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1930869, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.193275, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1934311, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1936178, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.193867, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.19408, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.194458, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.194648, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.194815, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1957371, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {%- if relation.is_table -%}\n {{- drop_table(relation) -}}\n {%- elif relation.is_view -%}\n {{- drop_view(relation) -}}\n {%- elif relation.is_materialized_view -%}\n {{- drop_materialized_view(relation) -}}\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endif -%}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.drop_table", "macro.dbt.drop_view", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.196207, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.196394, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.196501, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1966798, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1967869, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.196969, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.1970801, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "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": 1699563834.199359, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.199527, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.19984, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2000608, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.200268, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.200455, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.201312, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.201667, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.201856, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.202212, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.202448, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.203059, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "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": 1699563834.203323, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.204126, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2058082, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.205974, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.206814, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.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('.'): resolve_model_name(resolved)}) -%}\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 %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2072299, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_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.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.207822, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.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 {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\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, **kwargs: ref(*args, **kwargs, 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 %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.208315, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.208391, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2089028, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.209142, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.209435, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.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 %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.209713, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2100742, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.210567, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.211051, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2118, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.21212, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.212446, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2135391, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2145789, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2154508, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.216542, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.21722, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.217569, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.218299, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2191648, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2196229, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2200909, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.220705, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.221194, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.22175, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.222141, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.222809, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\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 pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.223797, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2244291, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2250822, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2256541, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2259998, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.226402, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.226763, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2274098, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.228238, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.229154, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2300858, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.230834, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2317388, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2322571, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.232566, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.236154, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2377741, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.238047, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.238218, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.23866, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2389388, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.239139, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2393951, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.239573, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2401862, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2410219, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2417312, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.242334, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.242572, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2429419, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.24333, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(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_subtract` macro 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.raise_compiler_error(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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.243881, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2441978, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.244551, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.245242, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.246172, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.247019, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.247447, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.247642, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.248172, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.24886, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.249723, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2501361, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2504299, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.251702, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2531369, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2544918, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2561789, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.256479, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.256615, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.259855, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.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 -%}", "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": 1699563834.263365, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.263674, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.263933, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.264704, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.264927, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2651362, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.265329, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.265497, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.265671, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.26606, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2662988, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.266677, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.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 -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2672288, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.26757, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.267908, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.269652, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.27002, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.270814, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._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 %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2713358, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2724822, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.274016, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.275098, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.275955, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.276425, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.277161, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.277945, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.2784152, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.27861, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.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 %}", "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": 1699563834.278998, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2796001, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.280062, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.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 -%}", "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": 1699563834.2807019, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.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", "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": 1699563834.281239, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2813818, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.281527, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2816682, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.282184, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2830021, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.284089, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2843719, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.284956, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.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 %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.285774, "supported_languages": null}, "macro.spark_utils.get_tables": {"name": "get_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_tables", "macro_sql": "{% macro get_tables(table_regex_pattern='.*') %}\n\n {% set tables = [] %}\n {% for database in spark__list_schemas('not_used') %}\n {% for table in spark__list_relations_without_caching(database[0]) %}\n {% set db_tablename = database[0] ~ \".\" ~ table[1] %}\n {% set is_match = modules.re.match(table_regex_pattern, db_tablename) %}\n {% if is_match %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('type', 'TYPE', 'Type'))|first %}\n {% if table_type[1]|lower != 'view' %}\n {{ tables.append(db_tablename) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% endfor %}\n {{ return(tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2910562, "supported_languages": null}, "macro.spark_utils.get_delta_tables": {"name": "get_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_delta_tables", "macro_sql": "{% macro get_delta_tables(table_regex_pattern='.*') %}\n\n {% set delta_tables = [] %}\n {% for db_tablename in get_tables(table_regex_pattern) %}\n {% call statement('table_detail', fetch_result=True) -%}\n describe extended {{ db_tablename }}\n {% endcall %}\n\n {% set table_type = load_result('table_detail').table|reverse|selectattr(0, 'in', ('provider', 'PROVIDER', 'Provider'))|first %}\n {% if table_type[1]|lower == 'delta' %}\n {{ delta_tables.append(db_tablename) }}\n {% endif %}\n {% endfor %}\n {{ return(delta_tables) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.291768, "supported_languages": null}, "macro.spark_utils.get_statistic_columns": {"name": "get_statistic_columns", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.get_statistic_columns", "macro_sql": "{% macro get_statistic_columns(table) %}\n\n {% call statement('input_columns', fetch_result=True) %}\n SHOW COLUMNS IN {{ table }}\n {% endcall %}\n {% set input_columns = load_result('input_columns').table %}\n\n {% set output_columns = [] %}\n {% for column in input_columns %}\n {% call statement('column_information', fetch_result=True) %}\n DESCRIBE TABLE {{ table }} `{{ column[0] }}`\n {% endcall %}\n {% if not load_result('column_information').table[1][1].startswith('struct') and not load_result('column_information').table[1][1].startswith('array') %}\n {{ output_columns.append('`' ~ column[0] ~ '`') }}\n {% endif %}\n {% endfor %}\n {{ return(output_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.292674, "supported_languages": null}, "macro.spark_utils.spark_optimize_delta_tables": {"name": "spark_optimize_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_optimize_delta_tables", "macro_sql": "{% macro spark_optimize_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Optimizing \" ~ table) }}\n {% do run_query(\"optimize \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.293422, "supported_languages": null}, "macro.spark_utils.spark_vacuum_delta_tables": {"name": "spark_vacuum_delta_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_vacuum_delta_tables", "macro_sql": "{% macro spark_vacuum_delta_tables(table_regex_pattern='.*') %}\n\n {% for table in get_delta_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Vacuuming \" ~ table) }}\n {% do run_query(\"vacuum \" ~ table) %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_delta_tables", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.294163, "supported_languages": null}, "macro.spark_utils.spark_analyze_tables": {"name": "spark_analyze_tables", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/maintenance_operation.sql", "original_file_path": "macros/maintenance_operation.sql", "unique_id": "macro.spark_utils.spark_analyze_tables", "macro_sql": "{% macro spark_analyze_tables(table_regex_pattern='.*') %}\n\n {% for table in get_tables(table_regex_pattern) %}\n {% set start=modules.datetime.datetime.now() %}\n {% set columns = get_statistic_columns(table) | join(',') %}\n {% set message_prefix=loop.index ~ \" of \" ~ loop.length %}\n {{ dbt_utils.log_info(message_prefix ~ \" Analyzing \" ~ table) }}\n {% if columns != '' %}\n {% do run_query(\"analyze table \" ~ table ~ \" compute statistics for columns \" ~ columns) %}\n {% endif %}\n {% set end=modules.datetime.datetime.now() %}\n {% set total_seconds = (end - start).total_seconds() | round(2) %}\n {{ dbt_utils.log_info(message_prefix ~ \" Finished \" ~ table ~ \" in \" ~ total_seconds ~ \"s\") }}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.get_tables", "macro.spark_utils.get_statistic_columns", "macro.dbt_utils.log_info", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.295146, "supported_languages": null}, "macro.spark_utils.spark__concat": {"name": "spark__concat", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/concat.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/concat.sql", "unique_id": "macro.spark_utils.spark__concat", "macro_sql": "{% macro spark__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.295326, "supported_languages": null}, "macro.spark_utils.spark__type_numeric": {"name": "spark__type_numeric", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datatypes.sql", "unique_id": "macro.spark_utils.spark__type_numeric", "macro_sql": "{% macro spark__type_numeric() %}\n decimal(28, 6)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.295438, "supported_languages": null}, "macro.spark_utils.spark__dateadd": {"name": "spark__dateadd", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/dateadd.sql", "unique_id": "macro.spark_utils.spark__dateadd", "macro_sql": "{% macro spark__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {%- set clock_component -%}\n {# make sure the dates + timestamps are real, otherwise raise an error asap #}\n to_unix_timestamp({{ spark_utils.assert_not_null('to_timestamp', from_date_or_timestamp) }})\n - to_unix_timestamp({{ spark_utils.assert_not_null('date', from_date_or_timestamp) }})\n {%- endset -%}\n\n {%- if datepart in ['day', 'week'] -%}\n \n {%- set multiplier = 7 if datepart == 'week' else 1 -%}\n\n to_timestamp(\n to_unix_timestamp(\n date_add(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ['month', 'quarter', 'year'] -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'month' -%} 1\n {%- elif datepart == 'quarter' -%} 3\n {%- elif datepart == 'year' -%} 12\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n to_unix_timestamp(\n add_months(\n {{ spark_utils.assert_not_null('date', from_date_or_timestamp) }},\n cast({{interval}} * {{multiplier}} as int)\n )\n ) + {{clock_component}}\n )\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set multiplier -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n to_timestamp(\n {{ spark_utils.assert_not_null('to_unix_timestamp', from_date_or_timestamp) }}\n + cast({{interval}} * {{multiplier}} as int)\n )\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro dateadd not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.2983549, "supported_languages": null}, "macro.spark_utils.spark__datediff": {"name": "spark__datediff", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/datediff.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/datediff.sql", "unique_id": "macro.spark_utils.spark__datediff", "macro_sql": "{% macro spark__datediff(first_date, second_date, datepart) %}\n\n {%- if datepart in ['day', 'week', 'month', 'quarter', 'year'] -%}\n \n {# make sure the dates are real, otherwise raise an error asap #}\n {% set first_date = spark_utils.assert_not_null('date', first_date) %}\n {% set second_date = spark_utils.assert_not_null('date', second_date) %}\n \n {%- endif -%}\n \n {%- if datepart == 'day' -%}\n \n datediff({{second_date}}, {{first_date}})\n \n {%- elif datepart == 'week' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(datediff({{second_date}}, {{first_date}})/7)\n else ceil(datediff({{second_date}}, {{first_date}})/7)\n end\n \n -- did we cross a week boundary (Sunday)?\n + case\n when {{first_date}} < {{second_date}} and dayofweek({{second_date}}) < dayofweek({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofweek({{second_date}}) > dayofweek({{first_date}}) then -1\n else 0 end\n\n {%- elif datepart == 'month' -%}\n\n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}})))\n else ceil(months_between(date({{second_date}}), date({{first_date}})))\n end\n \n -- did we cross a month boundary?\n + case\n when {{first_date}} < {{second_date}} and dayofmonth({{second_date}}) < dayofmonth({{first_date}}) then 1\n when {{first_date}} > {{second_date}} and dayofmonth({{second_date}}) > dayofmonth({{first_date}}) then -1\n else 0 end\n \n {%- elif datepart == 'quarter' -%}\n \n case when {{first_date}} < {{second_date}}\n then floor(months_between(date({{second_date}}), date({{first_date}}))/3)\n else ceil(months_between(date({{second_date}}), date({{first_date}}))/3)\n end\n \n -- did we cross a quarter boundary?\n + case\n when {{first_date}} < {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n < (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then 1\n when {{first_date}} > {{second_date}} and (\n (dayofyear({{second_date}}) - (quarter({{second_date}}) * 365/4))\n > (dayofyear({{first_date}}) - (quarter({{first_date}}) * 365/4))\n ) then -1\n else 0 end\n\n {%- elif datepart == 'year' -%}\n \n year({{second_date}}) - year({{first_date}})\n\n {%- elif datepart in ('hour', 'minute', 'second', 'millisecond', 'microsecond') -%}\n \n {%- set divisor -%} \n {%- if datepart == 'hour' -%} 3600\n {%- elif datepart == 'minute' -%} 60\n {%- elif datepart == 'second' -%} 1\n {%- elif datepart == 'millisecond' -%} (1/1000)\n {%- elif datepart == 'microsecond' -%} (1/1000000)\n {%- endif -%}\n {%- endset -%}\n\n case when {{first_date}} < {{second_date}}\n then ceil((\n {# make sure the timestamps are real, otherwise raise an error asap #}\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n else floor((\n {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', second_date)) }}\n - {{ spark_utils.assert_not_null('to_unix_timestamp', spark_utils.assert_not_null('to_timestamp', first_date)) }}\n ) / {{divisor}})\n end\n \n {% if datepart == 'millisecond' %}\n + cast(date_format({{second_date}}, 'SSS') as int)\n - cast(date_format({{first_date}}, 'SSS') as int)\n {% endif %}\n \n {% if datepart == 'microsecond' %} \n {% set capture_str = '[0-9]{4}-[0-9]{2}-[0-9]{2}.[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]{6})' %}\n -- Spark doesn't really support microseconds, so this is a massive hack!\n -- It will only work if the timestamp-string is of the format\n -- 'yyyy-MM-dd-HH mm.ss.SSSSSS'\n + cast(regexp_extract({{second_date}}, '{{capture_str}}', 1) as int)\n - cast(regexp_extract({{first_date}}, '{{capture_str}}', 1) as int) \n {% endif %}\n\n {%- else -%}\n\n {{ exceptions.raise_compiler_error(\"macro datediff not implemented for datepart ~ '\" ~ datepart ~ \"' ~ on Spark\") }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.3060732, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp": {"name": "spark__current_timestamp", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp", "macro_sql": "{% macro spark__current_timestamp() %}\n current_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.3062139, "supported_languages": null}, "macro.spark_utils.spark__current_timestamp_in_utc": {"name": "spark__current_timestamp_in_utc", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/current_timestamp.sql", "unique_id": "macro.spark_utils.spark__current_timestamp_in_utc", "macro_sql": "{% macro spark__current_timestamp_in_utc() %}\n unix_timestamp()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.3062909, "supported_languages": null}, "macro.spark_utils.spark__split_part": {"name": "spark__split_part", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/cross_db_utils/split_part.sql", "original_file_path": "macros/dbt_utils/cross_db_utils/split_part.sql", "unique_id": "macro.spark_utils.spark__split_part", "macro_sql": "{% macro spark__split_part(string_text, delimiter_text, part_number) %}\n\n {% set delimiter_expr %}\n \n -- escape if starts with a special character\n case when regexp_extract({{ delimiter_text }}, '([^A-Za-z0-9])(.*)', 1) != '_'\n then concat('\\\\', {{ delimiter_text }})\n else {{ delimiter_text }} end\n \n {% endset %}\n\n {% set split_part_expr %}\n \n split(\n {{ string_text }},\n {{ delimiter_expr }}\n )[({{ part_number - 1 }})]\n \n {% endset %}\n \n {{ return(split_part_expr) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.3068721, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_pattern": {"name": "spark__get_relations_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_pattern", "macro_sql": "{% macro spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n show table extended in {{ schema_pattern }} like '{{ table_pattern }}'\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=None,\n schema=row[0],\n identifier=row[1],\n type=('view' if 'Type: VIEW' in row[3] else 'table')\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.308482, "supported_languages": null}, "macro.spark_utils.spark__get_relations_by_prefix": {"name": "spark__get_relations_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_relations_by_prefix", "macro_sql": "{% macro spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {% set table_pattern = table_pattern ~ '*' %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.308827, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_pattern": {"name": "spark__get_tables_by_pattern", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_pattern", "macro_sql": "{% macro spark__get_tables_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.309109, "supported_languages": null}, "macro.spark_utils.spark__get_tables_by_prefix": {"name": "spark__get_tables_by_prefix", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "original_file_path": "macros/dbt_utils/sql/get_relations_by_prefix.sql", "unique_id": "macro.spark_utils.spark__get_tables_by_prefix", "macro_sql": "{% macro spark__get_tables_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(spark_utils.spark__get_relations_by_prefix(schema_pattern, table_pattern, exclude='', database=target.database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.spark_utils.spark__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.309388, "supported_languages": null}, "macro.spark_utils.assert_not_null": {"name": "assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.assert_not_null", "macro_sql": "{% macro assert_not_null(function, arg) -%}\n {{ return(adapter.dispatch('assert_not_null', 'spark_utils')(function, arg)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.spark_utils.default__assert_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.309712, "supported_languages": null}, "macro.spark_utils.default__assert_not_null": {"name": "default__assert_not_null", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/etc/assert_not_null.sql", "original_file_path": "macros/etc/assert_not_null.sql", "unique_id": "macro.spark_utils.default__assert_not_null", "macro_sql": "{% macro default__assert_not_null(function, arg) %}\n\n coalesce({{function}}({{arg}}), nvl2({{function}}({{arg}}), assert_true({{function}}({{arg}}) is not null), null))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.309914, "supported_languages": null}, "macro.spark_utils.spark__convert_timezone": {"name": "spark__convert_timezone", "resource_type": "macro", "package_name": "spark_utils", "path": "macros/snowplow/convert_timezone.sql", "original_file_path": "macros/snowplow/convert_timezone.sql", "unique_id": "macro.spark_utils.spark__convert_timezone", "macro_sql": "{% macro spark__convert_timezone(in_tz, out_tz, in_timestamp) %}\n from_utc_timestamp(to_utc_timestamp({{in_timestamp}}, {{in_tz}}), {{out_tz}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.310118, "supported_languages": null}, "macro.netsuite_source.get_expense_accounts_columns": {"name": "get_expense_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_expense_accounts_columns.sql", "original_file_path": "macros/get_expense_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.312014, "supported_languages": null}, "macro.netsuite_source.get_locationmainaddress_columns": {"name": "get_locationmainaddress_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_locationmainaddress_columns.sql", "original_file_path": "macros/get_locationmainaddress_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.314177, "supported_languages": null}, "macro.netsuite_source.get_accounts_columns": {"name": "get_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.3158898, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounts_columns": {"name": "get_netsuite2_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "unique_id": "macro.netsuite_source.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\": \"sspecacct\", \"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 {\"name\": \"eliminate\", \"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 %}", "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": 1699563834.317889, "supported_languages": null}, "macro.netsuite_source.get_classes_columns": {"name": "get_classes_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.318667, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_classes_columns": {"name": "get_netsuite2_classes_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.31949, "supported_languages": null}, "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns": {"name": "get_accountingperiodfiscalcalendars_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "original_file_path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.320363, "supported_languages": null}, "macro.netsuite_source.get_accountingbooksubsidiaries_columns": {"name": "get_accountingbooksubsidiaries_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accountingbooksubsidiaries_columns.sql", "original_file_path": "macros/get_accountingbooksubsidiaries_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.3212328, "supported_languages": null}, "macro.netsuite_source.get_items_columns": {"name": "get_items_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.363643, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_items_columns": {"name": "get_netsuite2_items_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.377347, "supported_languages": null}, "macro.netsuite_source.get_transaction_lines_columns": {"name": "get_transaction_lines_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.379373, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_lines_columns": {"name": "get_netsuite2_transaction_lines_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.3812459, "supported_languages": null}, "macro.netsuite_source.get_vendors_columns": {"name": "get_vendors_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.397861, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_vendors_columns": {"name": "get_netsuite2_vendors_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.403908, "supported_languages": null}, "macro.netsuite_source.get_transactionaccountingline_columns": {"name": "get_transactionaccountingline_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transactionaccountingline_columns.sql", "original_file_path": "macros/get_transactionaccountingline_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.406034, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns": {"name": "get_netsuite2_transaction_accounting_lines_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transaction_accounting_lines_columns.sql", "original_file_path": "macros/get_transaction_accounting_lines_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4079318, "supported_languages": null}, "macro.netsuite_source.get_vendorcategory_columns": {"name": "get_vendorcategory_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendorcategory_columns.sql", "original_file_path": "macros/get_vendorcategory_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.408999, "supported_languages": null}, "macro.netsuite_source.get_accounttype_columns": {"name": "get_accounttype_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounttype_columns.sql", "original_file_path": "macros/get_accounttype_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.410609, "supported_languages": null}, "macro.netsuite_source.get_accounting_books_columns": {"name": "get_accounting_books_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.413332, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_books_columns": {"name": "get_netsuite2_accounting_books_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4148831, "supported_languages": null}, "macro.netsuite_source.get_departments_columns": {"name": "get_departments_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.415767, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_departments_columns": {"name": "get_netsuite2_departments_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4166698, "supported_languages": null}, "macro.netsuite_source.get_transactions_columns": {"name": "get_transactions_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.418365, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transactions_columns": {"name": "get_netsuite2_transactions_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.420064, "supported_languages": null}, "macro.netsuite_source.get_entity_columns": {"name": "get_entity_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_entity_columns.sql", "original_file_path": "macros/get_entity_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.424437, "supported_languages": null}, "macro.netsuite_source.get_accounting_periods_columns": {"name": "get_accounting_periods_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.42803, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_periods_columns": {"name": "get_netsuite2_accounting_periods_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.429892, "supported_languages": null}, "macro.netsuite_source.get_consolidated_exchange_rates_columns": {"name": "get_consolidated_exchange_rates_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4318888, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns": {"name": "get_netsuite2_consolidated_exchange_rates_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "unique_id": "macro.netsuite_source.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\": \"accountingbook\", \"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 %}", "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": 1699563834.4331279, "supported_languages": null}, "macro.netsuite_source.get_income_accounts_columns": {"name": "get_income_accounts_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_income_accounts_columns.sql", "original_file_path": "macros/get_income_accounts_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4350212, "supported_languages": null}, "macro.netsuite_source.get_customers_columns": {"name": "get_customers_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.436592, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_customers_columns": {"name": "get_netsuite2_customers_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4382021, "supported_languages": null}, "macro.netsuite_source.get_locations_columns": {"name": "get_locations_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.439374, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_locations_columns": {"name": "get_netsuite2_locations_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.440285, "supported_languages": null}, "macro.netsuite_source.get_entityaddress_columns": {"name": "get_entityaddress_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_entityaddress_columns.sql", "original_file_path": "macros/get_entityaddress_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.442379, "supported_languages": null}, "macro.netsuite_source.get_vendor_types_columns": {"name": "get_vendor_types_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_vendor_types_columns.sql", "original_file_path": "macros/get_vendor_types_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.443348, "supported_languages": null}, "macro.netsuite_source.get_subsidiaries_columns": {"name": "get_subsidiaries_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.4501052, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_subsidiaries_columns": {"name": "get_netsuite2_subsidiaries_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "unique_id": "macro.netsuite_source.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 {\"name\": \"currency\", \"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 %}", "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": 1699563834.4513988, "supported_languages": null}, "macro.netsuite_source.get_job_columns": {"name": "get_job_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_job_columns.sql", "original_file_path": "macros/get_job_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.460166, "supported_languages": null}, "macro.netsuite_source.get_currencies_columns": {"name": "get_currencies_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.46175, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_currencies_columns": {"name": "get_netsuite2_currencies_columns", "resource_type": "macro", "package_name": "netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "unique_id": "macro.netsuite_source.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 %}", "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": 1699563834.46332, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.463727, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.464679, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.464847, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.465012, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.465174, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.465318, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4654841, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4662862, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4669409, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.468043, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.468294, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.468545, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.468791, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.469034, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.469304, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.469633, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4699562, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.470059, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4701598, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.47026, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4706292, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.471321, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.472343, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4729311, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4737332, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.474211, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.474347, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.474477, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.474606, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.474745, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4777431, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.477912, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4780731, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4782321, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4800792, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.480942, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.48108, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.481363, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.481656, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.48179, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.481916, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.482042, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.482531, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.483118, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.483618, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.483824, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.484048, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.48431, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4854221, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.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", "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": 1699563834.489509, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.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 -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4898748, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.490252, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.491853, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.49243, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.493005, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.493166, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.493322, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4934988, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4936562, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4938061, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4946501, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.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\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.495889, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.496609, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.496774, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4969358, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.497097, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.497258, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.497439, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.497689, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.497792, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4979572, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.4985979, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.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 -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.5021791, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.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 {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\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 {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.506834, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.508275, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.5086231, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.508735, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.508852, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.508956, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.509057, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.5093172, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.509422, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.509526, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.509929, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.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 %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1699563834.510324, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__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"}, "doc.netsuite_source.account_periods_table": {"name": "account_periods_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.account_periods_table", "block_contents": "Table detailing all accounting periods, including monthly, quarterly and yearly."}, "doc.netsuite_source.accounting_books_table": {"name": "accounting_books_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_books_table", "block_contents": "Table detailing all accounting books set up in Netsuite."}, "doc.netsuite_source.accounts_table": {"name": "accounts_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounts_table", "block_contents": "Table detailing all accounts set up in Netsuite."}, "doc.netsuite_source.classes_table": {"name": "classes_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.classes_table", "block_contents": "Table detailing all classes set up in Netsuite."}, "doc.netsuite_source.consolidated_exchange_rates_table": {"name": "consolidated_exchange_rates_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.consolidated_exchange_rates_table", "block_contents": "Table detailing average, historical and current exchange rates for all accounting periods."}, "doc.netsuite_source.customers_table": {"name": "customers_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.customers_table", "block_contents": "Table detailing all customer information."}, "doc.netsuite_source.currencies_table": {"name": "currencies_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.currencies_table", "block_contents": "Table detailing all currency information."}, "doc.netsuite_source.departments_table": {"name": "departments_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.departments_table", "block_contents": "Table detailing all departments set up in Netsuite."}, "doc.netsuite_source.expense_accounts_table": {"name": "expense_accounts_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.expense_accounts_table", "block_contents": "Table detailing all expense accounts."}, "doc.netsuite_source.income_accounts_table": {"name": "income_accounts_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.income_accounts_table", "block_contents": "Table detailing all income accounts."}, "doc.netsuite_source.items_table": {"name": "items_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.items_table", "block_contents": "Table detailing information about the items created in Netsuite."}, "doc.netsuite_source.locations_table": {"name": "locations_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.locations_table", "block_contents": "Table detailing all locations, including store, warehouse and office locations."}, "doc.netsuite_source.subsidiaries_table": {"name": "subsidiaries_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.subsidiaries_table", "block_contents": "Table detailing all subsidiaries."}, "doc.netsuite_source.transaction_lines_table": {"name": "transaction_lines_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "doc.netsuite_source.transaction_table": {"name": "transaction_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_table", "block_contents": "A table detailing all transactions."}, "doc.netsuite_source.vendor_types_table": {"name": "vendor_types_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_types_table", "block_contents": "A table detailing all the various types of vendors."}, "doc.netsuite_source.vendor_table": {"name": "vendor_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_table", "block_contents": "A table detailing all vendor information."}, "doc.netsuite_source.entities_table": {"name": "entities_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.entities_table", "block_contents": "Table detailing all entities in Netsuite."}, "doc.netsuite_source.jobs_table": {"name": "jobs_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.jobs_table", "block_contents": "Table detailing all jobs."}, "doc.netsuite_source.transaction_accounting_lines_table": {"name": "transaction_accounting_lines_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_accounting_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "doc.netsuite_source.vendor_categories_table": {"name": "vendor_categories_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_categories_table", "block_contents": "A table containing categories and how they map to vendors."}, "doc.netsuite_source.accounting_book_subsidiaries_table": {"name": "accounting_book_subsidiaries_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_book_subsidiaries_table", "block_contents": "A table containing the various account books and the respective subsidiaries."}, "doc.netsuite_source.accounting_period_fiscal_calendars_table": {"name": "accounting_period_fiscal_calendars_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_period_fiscal_calendars_table", "block_contents": "A table containing the accounting fiscal calendar periods."}, "doc.netsuite_source.account_types_table": {"name": "account_types_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.account_types_table", "block_contents": "A table containing the various account types within Netsuite."}, "doc.netsuite_source.entity_address_table": {"name": "entity_address_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.entity_address_table", "block_contents": "A table containing addresses and the various entities which they map."}, "doc.netsuite_source.location_main_address_table": {"name": "location_main_address_table", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.location_main_address_table", "block_contents": "A table containing the location main addresses."}, "doc.netsuite_source._fivetran_id": {"name": "_fivetran_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source._fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "doc.netsuite_source._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source._fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "doc.netsuite_source._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source._fivetran_deleted", "block_contents": "Timestamp of when a record was deleted."}, "doc.netsuite_source.vendor_id": {"name": "vendor_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_id", "block_contents": "The unique identifier of the vendor."}, "doc.netsuite_source.company_name": {"name": "company_name", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.company_name", "block_contents": "Name of the company."}, "doc.netsuite_source.create_date_at": {"name": "create_date_at", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.create_date_at", "block_contents": "Timestamp of the record creation."}, "doc.netsuite_source.vendor_category_id": {"name": "vendor_category_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.vendor_category_id", "block_contents": "Unique identifier of the vendor category."}, "doc.netsuite_source.accounting_period_id": {"name": "accounting_period_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_period_id", "block_contents": "The accounting period id of the accounting period which the transaction took place in."}, "doc.netsuite_source.created_at": {"name": "created_at", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.created_at", "block_contents": "Timestamp of when the record was created."}, "doc.netsuite_source.currency_id": {"name": "currency_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.currency_id", "block_contents": "The currency id of the currency used within the record."}, "doc.netsuite_source.entity_id": {"name": "entity_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.entity_id", "block_contents": "The entity id of the entity used for the record."}, "doc.netsuite_source.transaction_id": {"name": "transaction_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.transaction_id", "block_contents": "The transaction id of referenced for the record."}, "doc.netsuite_source.department_id": {"name": "department_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.department_id", "block_contents": "The unique identifier of the department used for the record."}, "doc.netsuite_source.subsidiary_id": {"name": "subsidiary_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.subsidiary_id", "block_contents": "The unique identifier of the subsidiary used for the record."}, "doc.netsuite_source.location_id": {"name": "location_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.location_id", "block_contents": "The unique identifier of the location used for the record."}, "doc.netsuite_source.class_id": {"name": "class_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.class_id", "block_contents": "The unique identifier of the class used for the record."}, "doc.netsuite_source.item_id": {"name": "item_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.item_id", "block_contents": "The unique identifier of the item used within the record."}, "doc.netsuite_source.fiscal_calendar_id": {"name": "fiscal_calendar_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.fiscal_calendar_id", "block_contents": "Reference to the fiscal calendar used for the record."}, "doc.netsuite_source.main_address_id": {"name": "main_address_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.main_address_id", "block_contents": "Reference to the main address used for the record."}, "doc.netsuite_source.addr1": {"name": "addr1", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addr1", "block_contents": "The associated address 1."}, "doc.netsuite_source.addr2": {"name": "addr2", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addr2", "block_contents": "The associated address 2."}, "doc.netsuite_source.addr3": {"name": "addr3", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addr3", "block_contents": "The associated address 3."}, "doc.netsuite_source.addressee": {"name": "addressee", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.addressee", "block_contents": "The individual associated with the address"}, "doc.netsuite_source.full_address": {"name": "full_address", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.full_address", "block_contents": "The full address associated."}, "doc.netsuite_source.city": {"name": "city", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.city", "block_contents": "The associated city."}, "doc.netsuite_source.country": {"name": "country", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.country", "block_contents": "The associated country."}, "doc.netsuite_source.state": {"name": "state", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.state", "block_contents": "The associated state."}, "doc.netsuite_source.nkey": {"name": "nkey", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.nkey", "block_contents": "The associated Netsuite key."}, "doc.netsuite_source.zipcode": {"name": "zipcode", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.zipcode", "block_contents": "The associated zipcode."}, "doc.netsuite_source.customer_id": {"name": "customer_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.customer_id", "block_contents": "Unique identifier of the customer."}, "doc.netsuite_source.accounting_book_id": {"name": "accounting_book_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.accounting_book_id", "block_contents": "Unique identifier of the accounting book."}, "doc.netsuite_source.account_type_id": {"name": "account_type_id", "resource_type": "doc", "package_name": "netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.netsuite_source.account_type_id", "block_contents": "Unique identifier of thea account type."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.netsuite_integration_tests.netsuite2_currency_data": [], "seed.netsuite_integration_tests.netsuite_vendors_data": [], "seed.netsuite_integration_tests.netsuite2_classification_data": [], "seed.netsuite_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_integration_tests.netsuite2_entities_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_integration_tests.netsuite_customers_data": [], "seed.netsuite_integration_tests.netsuite_locations_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_integration_tests.netsuite2_account_data": [], "seed.netsuite_integration_tests.netsuite_items_data": [], "seed.netsuite_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_integration_tests.netsuite_classes_data": [], "seed.netsuite_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_integration_tests.netsuite_departments_data": [], "seed.netsuite_integration_tests.netsuite2_customer_data": [], "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_integration_tests.netsuite2_department_data": [], "seed.netsuite_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_integration_tests.netsuite_currencies_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_integration_tests.netsuite_accounts_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_integration_tests.netsuite2_job_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_integration_tests.netsuite2_location_data": [], "seed.netsuite_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_integration_tests.netsuite2_item_data": [], "seed.netsuite_integration_tests.netsuite_transactions_data": [], "seed.netsuite_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["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__vendors": ["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__account_types": ["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__accounting_periods": ["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__customers": ["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__accounts": ["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__subsidiaries": ["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__location_main_address": ["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__departments": ["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__consolidated_exchange_rates": ["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__items": ["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__locations": ["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__customers": ["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__consolidated_exchange_rates": ["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__income_accounts": ["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__vendors": ["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__subsidiaries": ["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__items": ["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__departments": ["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__vendor_types": ["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": ["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"], "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": ["model.netsuite.int_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.int_netsuite2__tran_with_converted_amounts": ["model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.int_netsuite2__tran_lines_w_accounting_period"], "model.netsuite.int_netsuite2__tran_and_reporting_periods": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": ["model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transactions"], "model.netsuite.int_netsuite2__transaction_lines": ["model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__transaction_lines"], "model.netsuite.int_netsuite2__accounts": ["model.netsuite_source.stg_netsuite2__account_types", "model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite.int_netsuite2__customers": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__entity_address"], "model.netsuite.int_netsuite2__accounting_periods": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "model.netsuite_source.stg_netsuite2__accounting_periods"], "model.netsuite.int_netsuite2__locations": ["model.netsuite_source.stg_netsuite2__location_main_address", "model.netsuite_source.stg_netsuite2__locations"], "model.netsuite.netsuite__income_statement": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines"], "model.netsuite.netsuite__balance_sheet": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite.netsuite__transaction_details": ["model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__vendors"], "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": ["model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": ["model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transactions"], "model.netsuite.int_netsuite__transaction_and_reporting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite.int_netsuite__transactions_with_converted_amounts": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite_source.stg_netsuite__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"], "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e": ["model.netsuite.netsuite__balance_sheet"], "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32": ["model.netsuite.netsuite__balance_sheet"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da": ["model.netsuite.netsuite__balance_sheet"], "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d": ["model.netsuite.netsuite__income_statement"], "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80": ["model.netsuite.netsuite__income_statement"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641": ["model.netsuite.netsuite__income_statement"], "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3": ["model.netsuite.netsuite__transaction_details"], "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58": ["model.netsuite.netsuite__transaction_details"], "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096": ["model.netsuite.netsuite__transaction_details"], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400": ["model.netsuite.netsuite__transaction_details"], "model.netsuite.netsuite2__income_statement": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.netsuite2__balance_sheet": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite.netsuite2__transaction_details": ["model.netsuite.int_netsuite2__accounting_periods", "model.netsuite.int_netsuite2__accounts", "model.netsuite.int_netsuite2__customers", "model.netsuite.int_netsuite2__locations", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.int_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__entities", "model.netsuite_source.stg_netsuite2__items", "model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__transactions", "model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__vendors"], "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.unique_netsuite2__income_statement_income_statement_id.20a530fc68": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.not_null_netsuite2__income_statement_income_statement_id.4c1a7c959e": ["model.netsuite.netsuite2__income_statement"], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.unique_netsuite2__balance_sheet_balance_sheet_id.8bb14ebf4a": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.not_null_netsuite2__balance_sheet_balance_sheet_id.0e299c6c01": ["model.netsuite.netsuite2__balance_sheet"], "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.unique_netsuite2__transaction_details_transaction_details_id.cb70f22d04": ["model.netsuite.netsuite2__transaction_details"], "test.netsuite.not_null_netsuite2__transaction_details_transaction_details_id.a24a6eb6c0": ["model.netsuite.netsuite2__transaction_details"], "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_integration_tests.netsuite2_currency_data": [], "seed.netsuite_integration_tests.netsuite_vendors_data": [], "seed.netsuite_integration_tests.netsuite2_classification_data": [], "seed.netsuite_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_integration_tests.netsuite2_entities_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_integration_tests.netsuite_customers_data": [], "seed.netsuite_integration_tests.netsuite_locations_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_integration_tests.netsuite2_account_data": [], "seed.netsuite_integration_tests.netsuite_items_data": [], "seed.netsuite_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_integration_tests.netsuite_classes_data": [], "seed.netsuite_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_integration_tests.netsuite_departments_data": [], "seed.netsuite_integration_tests.netsuite2_customer_data": [], "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_integration_tests.netsuite2_department_data": [], "seed.netsuite_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_integration_tests.netsuite_currencies_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_integration_tests.netsuite_accounts_data": [], "seed.netsuite_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_integration_tests.netsuite2_job_data": [], "seed.netsuite_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_integration_tests.netsuite2_location_data": [], "seed.netsuite_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_integration_tests.netsuite2_item_data": [], "seed.netsuite_integration_tests.netsuite_transactions_data": [], "seed.netsuite_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__accounts", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_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": ["model.netsuite.int_netsuite2__accounting_periods", "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": ["model.netsuite.int_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": ["model.netsuite.int_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": ["model.netsuite.int_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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details", "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.int_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__location_main_address": ["model.netsuite.int_netsuite2__locations"], "model.netsuite_source.stg_netsuite2__vendor_categories": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__transaction_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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__transaction_lines", "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": ["model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.netsuite2__transaction_details", "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": ["model.netsuite.int_netsuite2__locations", "model.netsuite.netsuite2__income_statement", "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__transactions_tmp": ["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__account_types_tmp": ["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__jobs_tmp": ["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__accounts_tmp": ["model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["model.netsuite_source.stg_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["model.netsuite_source.stg_netsuite2__entities"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["model.netsuite_source.stg_netsuite2__currencies"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite_source.stg_netsuite2__items_tmp": ["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_period_fiscal_cal_tmp": ["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__accounting_book_subsidiaries_tmp": ["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__location_main_address_tmp": ["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__departments_tmp": ["model.netsuite_source.stg_netsuite2__departments"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["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_netsuite__transactions": ["model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "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": ["model.netsuite.int_netsuite__transaction_lines_w_accounting_period", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__accountxperiod_exchange_rate_map", "model.netsuite.int_netsuite__transactions_with_converted_amounts", "model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.netsuite__transaction_details", "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": ["model.netsuite.int_netsuite__transaction_and_reporting_periods", "model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details", "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_books_tmp": ["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__transaction_lines_tmp": ["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__accounts_tmp": ["model.netsuite_source.stg_netsuite__accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["model.netsuite_source.stg_netsuite__departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["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__vendors_tmp": ["model.netsuite_source.stg_netsuite__vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["model.netsuite_source.stg_netsuite__locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["model.netsuite_source.stg_netsuite__items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["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__classes_tmp": ["model.netsuite_source.stg_netsuite__classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["model.netsuite_source.stg_netsuite__expense_accounts"], "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map": ["model.netsuite.int_netsuite2__tran_with_converted_amounts"], "model.netsuite.int_netsuite2__tran_with_converted_amounts": ["model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__tran_and_reporting_periods": ["model.netsuite.int_netsuite2__tran_with_converted_amounts"], "model.netsuite.int_netsuite2__tran_lines_w_accounting_period": ["model.netsuite.int_netsuite2__tran_with_converted_amounts"], "model.netsuite.int_netsuite2__transaction_lines": ["model.netsuite.int_netsuite2__tran_lines_w_accounting_period", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__accounts": ["model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map", "model.netsuite.int_netsuite2__tran_with_converted_amounts", "model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__customers": ["model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__accounting_periods": ["model.netsuite.int_netsuite2__tran_and_reporting_periods", "model.netsuite.netsuite2__balance_sheet", "model.netsuite.netsuite2__income_statement", "model.netsuite.netsuite2__transaction_details"], "model.netsuite.int_netsuite2__locations": ["model.netsuite.netsuite2__transaction_details"], "model.netsuite.netsuite__income_statement": ["test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641", "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d", "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80"], "model.netsuite.netsuite__balance_sheet": ["test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da", "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e", "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32"], "model.netsuite.netsuite__transaction_details": ["test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096", "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400", "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58", "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3"], "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map": ["model.netsuite.int_netsuite__transactions_with_converted_amounts"], "model.netsuite.int_netsuite__transaction_lines_w_accounting_period": ["model.netsuite.int_netsuite__transactions_with_converted_amounts"], "model.netsuite.int_netsuite__transaction_and_reporting_periods": ["model.netsuite.int_netsuite__transactions_with_converted_amounts"], "model.netsuite.int_netsuite__transactions_with_converted_amounts": ["model.netsuite.netsuite__balance_sheet", "model.netsuite.netsuite__income_statement", "model.netsuite.netsuite__transaction_details"], "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": [], "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e": [], "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da": [], "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d": [], "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641": [], "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3": [], "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58": [], "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096": [], "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400": [], "model.netsuite.netsuite2__income_statement": ["test.netsuite.not_null_netsuite2__income_statement_income_statement_id.4c1a7c959e", "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef", "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706", "test.netsuite.unique_netsuite2__income_statement_income_statement_id.20a530fc68"], "model.netsuite.netsuite2__balance_sheet": ["test.netsuite.not_null_netsuite2__balance_sheet_balance_sheet_id.0e299c6c01", "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1", "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9", "test.netsuite.unique_netsuite2__balance_sheet_balance_sheet_id.8bb14ebf4a"], "model.netsuite.netsuite2__transaction_details": ["test.netsuite.not_null_netsuite2__transaction_details_transaction_details_id.a24a6eb6c0", "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79", "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36", "test.netsuite.unique_netsuite2__transaction_details_transaction_details_id.cb70f22d04"], "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef": [], "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706": [], "test.netsuite.unique_netsuite2__income_statement_income_statement_id.20a530fc68": [], "test.netsuite.not_null_netsuite2__income_statement_income_statement_id.4c1a7c959e": [], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1": [], "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9": [], "test.netsuite.unique_netsuite2__balance_sheet_balance_sheet_id.8bb14ebf4a": [], "test.netsuite.not_null_netsuite2__balance_sheet_balance_sheet_id.0e299c6c01": [], "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36": [], "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79": [], "test.netsuite.unique_netsuite2__transaction_details_transaction_details_id.cb70f22d04": [], "test.netsuite.not_null_netsuite2__transaction_details_transaction_details_id.a24a6eb6c0": [], "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"]}, "group_map": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 4e0b119b..1d00dc30 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.6.1", "generated_at": "2023-09-07T23:26:31.699205Z", "invocation_id": "550760fd-f240-450f-9565-76e16c46c159", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.474930Z", "completed_at": "2023-09-07T23:26:00.490929Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.492443Z", "completed_at": "2023-09-07T23:26:00.492460Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02240777015686035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.478650Z", "completed_at": "2023-09-07T23:26:00.491879Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.494072Z", "completed_at": "2023-09-07T23:26:00.494075Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.022160768508911133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.483230Z", "completed_at": "2023-09-07T23:26:00.492199Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.494313Z", "completed_at": "2023-09-07T23:26:00.494317Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.022086143493652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.488055Z", "completed_at": "2023-09-07T23:26:00.492720Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.494868Z", "completed_at": "2023-09-07T23:26:00.494871Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022841930389404297, "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": "2023-09-07T23:26:00.499249Z", "completed_at": "2023-09-07T23:26:00.509036Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.513781Z", "completed_at": "2023-09-07T23:26:00.513787Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01843714714050293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.505573Z", "completed_at": "2023-09-07T23:26:00.513269Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.515145Z", "completed_at": "2023-09-07T23:26:00.515148Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01735091209411621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.503055Z", "completed_at": "2023-09-07T23:26:00.513534Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.515571Z", "completed_at": "2023-09-07T23:26:00.515575Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018352270126342773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.509441Z", "completed_at": "2023-09-07T23:26:00.514203Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.516567Z", "completed_at": "2023-09-07T23:26:00.516570Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015880107879638672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.519506Z", "completed_at": "2023-09-07T23:26:00.526561Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.532505Z", "completed_at": "2023-09-07T23:26:00.532510Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01632404327392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.523398Z", "completed_at": "2023-09-07T23:26:00.532175Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.533843Z", "completed_at": "2023-09-07T23:26:00.533847Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016232967376708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.526820Z", "completed_at": "2023-09-07T23:26:00.532936Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.535227Z", "completed_at": "2023-09-07T23:26:00.535231Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01751399040222168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.529634Z", "completed_at": "2023-09-07T23:26:00.533131Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.535498Z", "completed_at": "2023-09-07T23:26:00.535505Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014554023742675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.538760Z", "completed_at": "2023-09-07T23:26:00.546122Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.552387Z", "completed_at": "2023-09-07T23:26:00.552394Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01769113540649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.543299Z", "completed_at": "2023-09-07T23:26:00.551360Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.553056Z", "completed_at": "2023-09-07T23:26:00.553059Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016611814498901367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.546395Z", "completed_at": "2023-09-07T23:26:00.552620Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.554949Z", "completed_at": "2023-09-07T23:26:00.554952Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013672113418579102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.548983Z", "completed_at": "2023-09-07T23:26:00.552819Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.555198Z", "completed_at": "2023-09-07T23:26:00.555201Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013751029968261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.558224Z", "completed_at": "2023-09-07T23:26:00.564710Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.571569Z", "completed_at": "2023-09-07T23:26:00.571575Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01697707176208496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.561492Z", "completed_at": "2023-09-07T23:26:00.571209Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.572951Z", "completed_at": "2023-09-07T23:26:00.572954Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017052888870239258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.564966Z", "completed_at": "2023-09-07T23:26:00.572046Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.574295Z", "completed_at": "2023-09-07T23:26:00.574298Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014615058898925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.568647Z", "completed_at": "2023-09-07T23:26:00.572263Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.574518Z", "completed_at": "2023-09-07T23:26:00.574522Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014729976654052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.577579Z", "completed_at": "2023-09-07T23:26:00.584166Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.589893Z", "completed_at": "2023-09-07T23:26:00.589901Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016031980514526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.581304Z", "completed_at": "2023-09-07T23:26:00.587222Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.591331Z", "completed_at": "2023-09-07T23:26:00.591336Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01605391502380371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.584654Z", "completed_at": "2023-09-07T23:26:00.591071Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.593309Z", "completed_at": "2023-09-07T23:26:00.593313Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013782024383544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.587443Z", "completed_at": "2023-09-07T23:26:00.591582Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.593799Z", "completed_at": "2023-09-07T23:26:00.593802Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014132022857666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.595338Z", "completed_at": "2023-09-07T23:26:00.602575Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.606749Z", "completed_at": "2023-09-07T23:26:00.606760Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017055988311767578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.600034Z", "completed_at": "2023-09-07T23:26:00.606401Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.610622Z", "completed_at": "2023-09-07T23:26:00.610626Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017112016677856445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.603938Z", "completed_at": "2023-09-07T23:26:00.610334Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.612533Z", "completed_at": "2023-09-07T23:26:00.612535Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013870716094970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.607032Z", "completed_at": "2023-09-07T23:26:00.611140Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.613191Z", "completed_at": "2023-09-07T23:26:00.613194Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014174938201904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.614112Z", "completed_at": "2023-09-07T23:26:00.618712Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.625647Z", "completed_at": "2023-09-07T23:26:00.625653Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016524076461791992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.618960Z", "completed_at": "2023-09-07T23:26:00.625868Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.629846Z", "completed_at": "2023-09-07T23:26:00.629854Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017503023147583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.623356Z", "completed_at": "2023-09-07T23:26:00.629606Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.632074Z", "completed_at": "2023-09-07T23:26:00.632078Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017239809036254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.626085Z", "completed_at": "2023-09-07T23:26:00.630578Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.635186Z", "completed_at": "2023-09-07T23:26:00.635190Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014033079147338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.632587Z", "completed_at": "2023-09-07T23:26:00.637018Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.641031Z", "completed_at": "2023-09-07T23:26:00.641035Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01396489143371582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.638196Z", "completed_at": "2023-09-07T23:26:00.643776Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.648636Z", "completed_at": "2023-09-07T23:26:00.648641Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013857841491699219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.641503Z", "completed_at": "2023-09-07T23:26:00.648405Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.650409Z", "completed_at": "2023-09-07T23:26:00.650412Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015958070755004883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.644546Z", "completed_at": "2023-09-07T23:26:00.649201Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.653241Z", "completed_at": "2023-09-07T23:26:00.653245Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013959884643554688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.650892Z", "completed_at": "2023-09-07T23:26:00.655002Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.659519Z", "completed_at": "2023-09-07T23:26:00.659524Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013881206512451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.656245Z", "completed_at": "2023-09-07T23:26:00.665273Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.666829Z", "completed_at": "2023-09-07T23:26:00.666834Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013820171356201172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.660012Z", "completed_at": "2023-09-07T23:26:00.666263Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.668316Z", "completed_at": "2023-09-07T23:26:00.668320Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015038013458251953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.663070Z", "completed_at": "2023-09-07T23:26:00.667035Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.670339Z", "completed_at": "2023-09-07T23:26:00.670344Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012940168380737305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.668566Z", "completed_at": "2023-09-07T23:26:00.669681Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.672269Z", "completed_at": "2023-09-07T23:26:00.672272Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0069010257720947266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.673635Z", "completed_at": "2023-09-07T23:26:00.675590Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.678737Z", "completed_at": "2023-09-07T23:26:00.678742Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009843111038208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_account_type_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.677027Z", "completed_at": "2023-09-07T23:26:00.678028Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.681629Z", "completed_at": "2023-09-07T23:26:00.681633Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010943412780761719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.679005Z", "completed_at": "2023-09-07T23:26:00.680023Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.683402Z", "completed_at": "2023-09-07T23:26:00.683407Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009057044982910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.681896Z", "completed_at": "2023-09-07T23:26:00.682804Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.685469Z", "completed_at": "2023-09-07T23:26:00.685472Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0082550048828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.686904Z", "completed_at": "2023-09-07T23:26:00.687965Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.690976Z", "completed_at": "2023-09-07T23:26:00.690981Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009340763092041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.689395Z", "completed_at": "2023-09-07T23:26:00.690354Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.694155Z", "completed_at": "2023-09-07T23:26:00.694158Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01001882553100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_classification_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.691194Z", "completed_at": "2023-09-07T23:26:00.692944Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.695719Z", "completed_at": "2023-09-07T23:26:00.695722Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009098052978515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.694360Z", "completed_at": "2023-09-07T23:26:00.695205Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.697820Z", "completed_at": "2023-09-07T23:26:00.697823Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00845193862915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_currency_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.699394Z", "completed_at": "2023-09-07T23:26:00.700568Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.703877Z", "completed_at": "2023-09-07T23:26:00.703881Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009021282196044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.702253Z", "completed_at": "2023-09-07T23:26:00.703239Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.706311Z", "completed_at": "2023-09-07T23:26:00.706314Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009820222854614258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.704102Z", "completed_at": "2023-09-07T23:26:00.705008Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.707938Z", "completed_at": "2023-09-07T23:26:00.707941Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00850677490234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_entities_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.706533Z", "completed_at": "2023-09-07T23:26:00.707443Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.710114Z", "completed_at": "2023-09-07T23:26:00.710118Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0077970027923583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_entity_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.711587Z", "completed_at": "2023-09-07T23:26:00.713594Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.716478Z", "completed_at": "2023-09-07T23:26:00.716483Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009400129318237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.714995Z", "completed_at": "2023-09-07T23:26:00.715910Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.718694Z", "completed_at": "2023-09-07T23:26:00.718697Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009725809097290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_job_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.716691Z", "completed_at": "2023-09-07T23:26:00.717541Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.720156Z", "completed_at": "2023-09-07T23:26:00.720159Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007497072219848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_location_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.718895Z", "completed_at": "2023-09-07T23:26:00.719738Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.721816Z", "completed_at": "2023-09-07T23:26:00.721819Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006908893585205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_location_main_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.723363Z", "completed_at": "2023-09-07T23:26:00.724424Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.727758Z", "completed_at": "2023-09-07T23:26:00.727764Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009827136993408203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_subsidiary_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.726078Z", "completed_at": "2023-09-07T23:26:00.727149Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.731241Z", "completed_at": "2023-09-07T23:26:00.731244Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010593891143798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.727998Z", "completed_at": "2023-09-07T23:26:00.729928Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.732778Z", "completed_at": "2023-09-07T23:26:00.732780Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009251117706298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.731449Z", "completed_at": "2023-09-07T23:26:00.732335Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.734465Z", "completed_at": "2023-09-07T23:26:00.734468Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008111953735351562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.735795Z", "completed_at": "2023-09-07T23:26:00.736759Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.739719Z", "completed_at": "2023-09-07T23:26:00.739724Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008027791976928711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_category_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.738128Z", "completed_at": "2023-09-07T23:26:00.739088Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.742085Z", "completed_at": "2023-09-07T23:26:00.742088Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00891423225402832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.739942Z", "completed_at": "2023-09-07T23:26:00.740838Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.743577Z", "completed_at": "2023-09-07T23:26:00.743580Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007806062698364258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_books_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.742287Z", "completed_at": "2023-09-07T23:26:00.743140Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.745259Z", "completed_at": "2023-09-07T23:26:00.745262Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0069119930267333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_periods_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.746513Z", "completed_at": "2023-09-07T23:26:00.748269Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.751554Z", "completed_at": "2023-09-07T23:26:00.751560Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009051799774169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.749780Z", "completed_at": "2023-09-07T23:26:00.750851Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.753926Z", "completed_at": "2023-09-07T23:26:00.753929Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010005950927734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_classes_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.751783Z", "completed_at": "2023-09-07T23:26:00.752704Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.755455Z", "completed_at": "2023-09-07T23:26:00.755458Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008205890655517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.754132Z", "completed_at": "2023-09-07T23:26:00.755005Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.757206Z", "completed_at": "2023-09-07T23:26:00.757210Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007154941558837891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_currencies_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.758599Z", "completed_at": "2023-09-07T23:26:00.759566Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.762389Z", "completed_at": "2023-09-07T23:26:00.762393Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008963823318481445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_customers_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.760936Z", "completed_at": "2023-09-07T23:26:00.761820Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.765707Z", "completed_at": "2023-09-07T23:26:00.765710Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010267019271850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_departments_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.762604Z", "completed_at": "2023-09-07T23:26:00.764417Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.767648Z", "completed_at": "2023-09-07T23:26:00.767652Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009259939193725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_expense_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.765917Z", "completed_at": "2023-09-07T23:26:00.766892Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.769537Z", "completed_at": "2023-09-07T23:26:00.769540Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008507251739501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_income_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.770864Z", "completed_at": "2023-09-07T23:26:00.771902Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.774588Z", "completed_at": "2023-09-07T23:26:00.774592Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007962942123413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_items_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.773170Z", "completed_at": "2023-09-07T23:26:00.774069Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.777177Z", "completed_at": "2023-09-07T23:26:00.777185Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009308099746704102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_locations_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.774799Z", "completed_at": "2023-09-07T23:26:00.775680Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.779007Z", "completed_at": "2023-09-07T23:26:00.779010Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00827789306640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_subsidiaries_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.777480Z", "completed_at": "2023-09-07T23:26:00.778520Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.780872Z", "completed_at": "2023-09-07T23:26:00.780876Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007727861404418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_transaction_lines_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.782312Z", "completed_at": "2023-09-07T23:26:00.784277Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.786990Z", "completed_at": "2023-09-07T23:26:00.786996Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008844137191772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_transactions_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.785626Z", "completed_at": "2023-09-07T23:26:00.786437Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.789286Z", "completed_at": "2023-09-07T23:26:00.789293Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014855146408081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_vendor_types_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.787204Z", "completed_at": "2023-09-07T23:26:00.788045Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:00.795933Z", "completed_at": "2023-09-07T23:26:00.795937Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012744903564453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_vendors_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.798794Z", "completed_at": "2023-09-07T23:26:05.294780Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:05.295751Z", "completed_at": "2023-09-07T23:26:05.295760Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 5.197502136230469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.789541Z", "completed_at": "2023-09-07T23:26:05.295548Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:05.297311Z", "completed_at": "2023-09-07T23:26:05.297315Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 5.208178281784058, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.836041Z", "completed_at": "2023-09-07T23:26:05.295339Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:05.296925Z", "completed_at": "2023-09-07T23:26:05.296933Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 5.163890838623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:00.832277Z", "completed_at": "2023-09-07T23:26:05.542676Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:05.543153Z", "completed_at": "2023-09-07T23:26:05.543159Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 5.408488750457764, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:06.008526Z", "completed_at": "2023-09-07T23:26:10.946642Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:10.948383Z", "completed_at": "2023-09-07T23:26:10.948387Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 5.105365991592407, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:05.997956Z", "completed_at": "2023-09-07T23:26:10.946951Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:10.948863Z", "completed_at": "2023-09-07T23:26:10.948866Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 5.106625080108643, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:06.207913Z", "completed_at": "2023-09-07T23:26:10.940310Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:10.947232Z", "completed_at": "2023-09-07T23:26:10.947240Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 4.896092176437378, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:06.002084Z", "completed_at": "2023-09-07T23:26:10.947716Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:10.949323Z", "completed_at": "2023-09-07T23:26:10.949326Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 5.107345104217529, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:11.111702Z", "completed_at": "2023-09-07T23:26:13.499906Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:13.501167Z", "completed_at": "2023-09-07T23:26:13.501170Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.6414318084716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:11.119450Z", "completed_at": "2023-09-07T23:26:13.498726Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:13.500145Z", "completed_at": "2023-09-07T23:26:13.500156Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.64178204536438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:11.115706Z", "completed_at": "2023-09-07T23:26:13.441142Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:13.441601Z", "completed_at": "2023-09-07T23:26:13.441608Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.64363431930542, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:11.107240Z", "completed_at": "2023-09-07T23:26:13.499079Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:13.500376Z", "completed_at": "2023-09-07T23:26:13.500378Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.6450459957122803, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:13.766802Z", "completed_at": "2023-09-07T23:26:15.859278Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:15.867659Z", "completed_at": "2023-09-07T23:26:15.867667Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.239900827407837, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:13.762914Z", "completed_at": "2023-09-07T23:26:15.868281Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:15.868699Z", "completed_at": "2023-09-07T23:26:15.868703Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.240737199783325, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:13.752630Z", "completed_at": "2023-09-07T23:26:16.066716Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:16.067321Z", "completed_at": "2023-09-07T23:26:16.067328Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.436018943786621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:13.758414Z", "completed_at": "2023-09-07T23:26:16.067875Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:16.068319Z", "completed_at": "2023-09-07T23:26:16.068322Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.436183214187622, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:15.994686Z", "completed_at": "2023-09-07T23:26:17.929463Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:17.936470Z", "completed_at": "2023-09-07T23:26:17.936477Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.058364152908325, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:15.999199Z", "completed_at": "2023-09-07T23:26:17.936250Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:17.937838Z", "completed_at": "2023-09-07T23:26:17.937841Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.058525800704956, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:16.189105Z", "completed_at": "2023-09-07T23:26:17.935141Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:17.936706Z", "completed_at": "2023-09-07T23:26:17.936709Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.8650319576263428, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:16.193345Z", "completed_at": "2023-09-07T23:26:17.936041Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:17.937629Z", "completed_at": "2023-09-07T23:26:17.937632Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.9675641059875488, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:18.055597Z", "completed_at": "2023-09-07T23:26:21.036742Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:21.055915Z", "completed_at": "2023-09-07T23:26:21.055922Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 3.2104859352111816, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:18.066531Z", "completed_at": "2023-09-07T23:26:21.056556Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:21.057570Z", "completed_at": "2023-09-07T23:26:21.057577Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 3.2209019660949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:18.062486Z", "completed_at": "2023-09-07T23:26:21.057163Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:21.058395Z", "completed_at": "2023-09-07T23:26:21.058403Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 3.221618175506592, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:18.157039Z", "completed_at": "2023-09-07T23:26:21.216274Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:21.216755Z", "completed_at": "2023-09-07T23:26:21.216763Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 3.3736579418182373, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:21.265749Z", "completed_at": "2023-09-07T23:26:23.261942Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:23.262723Z", "completed_at": "2023-09-07T23:26:23.262732Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.1451568603515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:21.281945Z", "completed_at": "2023-09-07T23:26:23.246820Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:23.247325Z", "completed_at": "2023-09-07T23:26:23.247333Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.1332948207855225, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:21.278254Z", "completed_at": "2023-09-07T23:26:23.335637Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:23.336104Z", "completed_at": "2023-09-07T23:26:23.336111Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.224860906600952, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:21.531281Z", "completed_at": "2023-09-07T23:26:23.433230Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:23.433852Z", "completed_at": "2023-09-07T23:26:23.433860Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.038816213607788, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:23.417714Z", "completed_at": "2023-09-07T23:26:25.299366Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:25.300908Z", "completed_at": "2023-09-07T23:26:25.300915Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.2124810218811035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:23.413169Z", "completed_at": "2023-09-07T23:26:25.300054Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:25.301140Z", "completed_at": "2023-09-07T23:26:25.301143Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.222104072570801, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:23.503394Z", "completed_at": "2023-09-07T23:26:25.655345Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:25.655904Z", "completed_at": "2023-09-07T23:26:25.655911Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.3776819705963135, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:23.572250Z", "completed_at": "2023-09-07T23:26:25.656404Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:25.656835Z", "completed_at": "2023-09-07T23:26:25.656838Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.320518970489502, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:25.635493Z", "completed_at": "2023-09-07T23:26:27.887875Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:27.888287Z", "completed_at": "2023-09-07T23:26:27.888291Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.4308178424835205, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:25.627943Z", "completed_at": "2023-09-07T23:26:27.873170Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:27.887129Z", "completed_at": "2023-09-07T23:26:27.887138Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.7144672870635986, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:25.894262Z", "completed_at": "2023-09-07T23:26:28.362014Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:28.363284Z", "completed_at": "2023-09-07T23:26:28.363288Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.9875173568725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:25.884364Z", "completed_at": "2023-09-07T23:26:28.361725Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:28.363067Z", "completed_at": "2023-09-07T23:26:28.363073Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 3.0014562606811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:28.067050Z", "completed_at": "2023-09-07T23:26:30.556217Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.556753Z", "completed_at": "2023-09-07T23:26:30.556760Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.6372010707855225, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:30.705341Z", "completed_at": "2023-09-07T23:26:30.717783Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.718244Z", "completed_at": "2023-09-07T23:26:30.718250Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014065027236938477, "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": "2023-09-07T23:26:30.719614Z", "completed_at": "2023-09-07T23:26:30.723503Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.723985Z", "completed_at": "2023-09-07T23:26:30.723989Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005234956741333008, "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": "2023-09-07T23:26:30.725377Z", "completed_at": "2023-09-07T23:26:30.728249Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.728663Z", "completed_at": "2023-09-07T23:26:30.728669Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004158973693847656, "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": "2023-09-07T23:26:30.730060Z", "completed_at": "2023-09-07T23:26:30.732771Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.733191Z", "completed_at": "2023-09-07T23:26:30.733195Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0039958953857421875, "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": "2023-09-07T23:26:30.734541Z", "completed_at": "2023-09-07T23:26:30.737198Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.737597Z", "completed_at": "2023-09-07T23:26:30.737601Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038750171661376953, "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": "2023-09-07T23:26:30.739398Z", "completed_at": "2023-09-07T23:26:30.742301Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.742754Z", "completed_at": "2023-09-07T23:26:30.742763Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0044100284576416016, "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": "2023-09-07T23:26:30.744151Z", "completed_at": "2023-09-07T23:26:30.747737Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.748148Z", "completed_at": "2023-09-07T23:26:30.748152Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0048370361328125, "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": "2023-09-07T23:26:30.749476Z", "completed_at": "2023-09-07T23:26:30.752080Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.752503Z", "completed_at": "2023-09-07T23:26:30.752507Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004018068313598633, "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": "2023-09-07T23:26:30.754385Z", "completed_at": "2023-09-07T23:26:30.758065Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.758515Z", "completed_at": "2023-09-07T23:26:30.758521Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005186796188354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:30.759926Z", "completed_at": "2023-09-07T23:26:30.762546Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.762954Z", "completed_at": "2023-09-07T23:26:30.762958Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038421154022216797, "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": "2023-09-07T23:26:30.764246Z", "completed_at": "2023-09-07T23:26:30.766998Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.767453Z", "completed_at": "2023-09-07T23:26:30.767457Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004040241241455078, "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": "2023-09-07T23:26:30.768887Z", "completed_at": "2023-09-07T23:26:30.772939Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.773381Z", "completed_at": "2023-09-07T23:26:30.773386Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005414009094238281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:30.774799Z", "completed_at": "2023-09-07T23:26:30.777387Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.777792Z", "completed_at": "2023-09-07T23:26:30.777796Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00392603874206543, "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": "2023-09-07T23:26:30.779483Z", "completed_at": "2023-09-07T23:26:30.782257Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.782685Z", "completed_at": "2023-09-07T23:26:30.782690Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004211902618408203, "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": "2023-09-07T23:26:30.784288Z", "completed_at": "2023-09-07T23:26:30.787351Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.787783Z", "completed_at": "2023-09-07T23:26:30.787787Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004492044448852539, "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": "2023-09-07T23:26:30.789174Z", "completed_at": "2023-09-07T23:26:30.792052Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.792511Z", "completed_at": "2023-09-07T23:26:30.792517Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004343748092651367, "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": "2023-09-07T23:26:30.794313Z", "completed_at": "2023-09-07T23:26:30.797510Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.797951Z", "completed_at": "2023-09-07T23:26:30.797960Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00474095344543457, "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": "2023-09-07T23:26:30.799372Z", "completed_at": "2023-09-07T23:26:30.802872Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.803288Z", "completed_at": "2023-09-07T23:26:30.803292Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0047779083251953125, "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": "2023-09-07T23:26:30.804639Z", "completed_at": "2023-09-07T23:26:30.807415Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.807811Z", "completed_at": "2023-09-07T23:26:30.807816Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0040018558502197266, "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": "2023-09-07T23:26:30.809361Z", "completed_at": "2023-09-07T23:26:30.812234Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.812649Z", "completed_at": "2023-09-07T23:26:30.812654Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004323005676269531, "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": "2023-09-07T23:26:30.814000Z", "completed_at": "2023-09-07T23:26:30.816652Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.817046Z", "completed_at": "2023-09-07T23:26:30.817050Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003846883773803711, "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": "2023-09-07T23:26:30.818346Z", "completed_at": "2023-09-07T23:26:30.821385Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.821768Z", "completed_at": "2023-09-07T23:26:30.821773Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004248142242431641, "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": "2023-09-07T23:26:30.823273Z", "completed_at": "2023-09-07T23:26:30.827165Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.827591Z", "completed_at": "2023-09-07T23:26:30.827596Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0053060054779052734, "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": "2023-09-07T23:26:30.828948Z", "completed_at": "2023-09-07T23:26:30.831466Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.831948Z", "completed_at": "2023-09-07T23:26:30.831952Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038230419158935547, "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": "2023-09-07T23:26:30.833308Z", "completed_at": "2023-09-07T23:26:30.835904Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.836287Z", "completed_at": "2023-09-07T23:26:30.836290Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0037670135498046875, "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": "2023-09-07T23:26:30.837762Z", "completed_at": "2023-09-07T23:26:30.840573Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.840994Z", "completed_at": "2023-09-07T23:26:30.840998Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0042150020599365234, "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": "2023-09-07T23:26:30.842396Z", "completed_at": "2023-09-07T23:26:30.844989Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.845451Z", "completed_at": "2023-09-07T23:26:30.845456Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003938913345336914, "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": "2023-09-07T23:26:30.846913Z", "completed_at": "2023-09-07T23:26:30.849441Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.849814Z", "completed_at": "2023-09-07T23:26:30.849818Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0037949085235595703, "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": "2023-09-07T23:26:30.851230Z", "completed_at": "2023-09-07T23:26:30.855572Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.856008Z", "completed_at": "2023-09-07T23:26:30.856012Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005732059478759766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:30.857477Z", "completed_at": "2023-09-07T23:26:30.860039Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.860416Z", "completed_at": "2023-09-07T23:26:30.860420Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038268566131591797, "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": "2023-09-07T23:26:30.861951Z", "completed_at": "2023-09-07T23:26:30.864930Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.865388Z", "completed_at": "2023-09-07T23:26:30.865393Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004453897476196289, "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": "2023-09-07T23:26:30.866736Z", "completed_at": "2023-09-07T23:26:30.869798Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.870216Z", "completed_at": "2023-09-07T23:26:30.870220Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004281759262084961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:30.871542Z", "completed_at": "2023-09-07T23:26:30.874343Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.874723Z", "completed_at": "2023-09-07T23:26:30.874727Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004008054733276367, "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": "2023-09-07T23:26:30.876233Z", "completed_at": "2023-09-07T23:26:30.879027Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.879472Z", "completed_at": "2023-09-07T23:26:30.879477Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004256010055541992, "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": "2023-09-07T23:26:30.880839Z", "completed_at": "2023-09-07T23:26:30.884503Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.884887Z", "completed_at": "2023-09-07T23:26:30.884891Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004848957061767578, "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": "2023-09-07T23:26:30.886569Z", "completed_at": "2023-09-07T23:26:30.889164Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.889540Z", "completed_at": "2023-09-07T23:26:30.889544Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003997087478637695, "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": "2023-09-07T23:26:30.891034Z", "completed_at": "2023-09-07T23:26:30.897016Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.897470Z", "completed_at": "2023-09-07T23:26:30.897477Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007462978363037109, "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": "2023-09-07T23:26:30.898921Z", "completed_at": "2023-09-07T23:26:30.908244Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.908957Z", "completed_at": "2023-09-07T23:26:30.908964Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011142969131469727, "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": "2023-09-07T23:26:30.911097Z", "completed_at": "2023-09-07T23:26:30.915298Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.915742Z", "completed_at": "2023-09-07T23:26:30.915748Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0055959224700927734, "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": "2023-09-07T23:26:30.917140Z", "completed_at": "2023-09-07T23:26:30.920498Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.920905Z", "completed_at": "2023-09-07T23:26:30.920909Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004579782485961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:30.922284Z", "completed_at": "2023-09-07T23:26:30.925198Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.925634Z", "completed_at": "2023-09-07T23:26:30.925639Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004220008850097656, "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": "2023-09-07T23:26:30.927368Z", "completed_at": "2023-09-07T23:26:30.930382Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.930824Z", "completed_at": "2023-09-07T23:26:30.930829Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004506111145019531, "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": "2023-09-07T23:26:30.932216Z", "completed_at": "2023-09-07T23:26:30.934867Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.935279Z", "completed_at": "2023-09-07T23:26:30.935283Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003912925720214844, "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": "2023-09-07T23:26:30.936625Z", "completed_at": "2023-09-07T23:26:30.939431Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.939845Z", "completed_at": "2023-09-07T23:26:30.939850Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004090070724487305, "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": "2023-09-07T23:26:30.941480Z", "completed_at": "2023-09-07T23:26:30.945501Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.945939Z", "completed_at": "2023-09-07T23:26:30.945945Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005616188049316406, "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": "2023-09-07T23:26:30.947384Z", "completed_at": "2023-09-07T23:26:30.950049Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.950462Z", "completed_at": "2023-09-07T23:26:30.950467Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003951072692871094, "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": "2023-09-07T23:26:30.951745Z", "completed_at": "2023-09-07T23:26:30.954314Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.954702Z", "completed_at": "2023-09-07T23:26:30.954707Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00376129150390625, "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": "2023-09-07T23:26:30.955998Z", "completed_at": "2023-09-07T23:26:30.958548Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.958952Z", "completed_at": "2023-09-07T23:26:30.958955Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0037643909454345703, "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": "2023-09-07T23:26:30.960248Z", "completed_at": "2023-09-07T23:26:30.962708Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.963103Z", "completed_at": "2023-09-07T23:26:30.963109Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0036668777465820312, "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": "2023-09-07T23:26:30.964410Z", "completed_at": "2023-09-07T23:26:30.968481Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.968897Z", "completed_at": "2023-09-07T23:26:30.968903Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005350828170776367, "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": "2023-09-07T23:26:30.970274Z", "completed_at": "2023-09-07T23:26:30.972901Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.973306Z", "completed_at": "2023-09-07T23:26:30.973310Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038979053497314453, "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": "2023-09-07T23:26:30.974648Z", "completed_at": "2023-09-07T23:26:30.977762Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.978187Z", "completed_at": "2023-09-07T23:26:30.978190Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004387855529785156, "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": "2023-09-07T23:26:30.979586Z", "completed_at": "2023-09-07T23:26:30.982387Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.982788Z", "completed_at": "2023-09-07T23:26:30.982793Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004067897796630859, "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": "2023-09-07T23:26:30.984350Z", "completed_at": "2023-09-07T23:26:30.987289Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.987723Z", "completed_at": "2023-09-07T23:26:30.987733Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004418134689331055, "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": "2023-09-07T23:26:30.989060Z", "completed_at": "2023-09-07T23:26:30.991769Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.992186Z", "completed_at": "2023-09-07T23:26:30.992190Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003936052322387695, "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": "2023-09-07T23:26:30.993474Z", "completed_at": "2023-09-07T23:26:30.997041Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.997441Z", "completed_at": "2023-09-07T23:26:30.997445Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004772663116455078, "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": "2023-09-07T23:26:30.998749Z", "completed_at": "2023-09-07T23:26:31.001292Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.001699Z", "completed_at": "2023-09-07T23:26:31.001703Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0037870407104492188, "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": "2023-09-07T23:26:31.002981Z", "completed_at": "2023-09-07T23:26:31.005581Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.006019Z", "completed_at": "2023-09-07T23:26:31.006024Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003939151763916016, "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": "2023-09-07T23:26:31.007615Z", "completed_at": "2023-09-07T23:26:31.010790Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.011221Z", "completed_at": "2023-09-07T23:26:31.011226Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0045261383056640625, "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": "2023-09-07T23:26:31.012604Z", "completed_at": "2023-09-07T23:26:31.015305Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.015722Z", "completed_at": "2023-09-07T23:26:31.015726Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0039370059967041016, "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": "2023-09-07T23:26:31.017005Z", "completed_at": "2023-09-07T23:26:31.021182Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.021613Z", "completed_at": "2023-09-07T23:26:31.021619Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0054628849029541016, "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": "2023-09-07T23:26:31.023009Z", "completed_at": "2023-09-07T23:26:31.025750Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.026158Z", "completed_at": "2023-09-07T23:26:31.026162Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003988027572631836, "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": "2023-09-07T23:26:31.027485Z", "completed_at": "2023-09-07T23:26:31.030023Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.030435Z", "completed_at": "2023-09-07T23:26:31.030439Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0037682056427001953, "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": "2023-09-07T23:26:31.031749Z", "completed_at": "2023-09-07T23:26:31.034834Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.035271Z", "completed_at": "2023-09-07T23:26:31.035276Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00436711311340332, "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": "2023-09-07T23:26:31.036690Z", "completed_at": "2023-09-07T23:26:31.039332Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.039746Z", "completed_at": "2023-09-07T23:26:31.039750Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003946065902709961, "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": "2023-09-07T23:26:31.041042Z", "completed_at": "2023-09-07T23:26:31.043537Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.043939Z", "completed_at": "2023-09-07T23:26:31.043942Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0037009716033935547, "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": "2023-09-07T23:26:31.045249Z", "completed_at": "2023-09-07T23:26:31.049446Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.049841Z", "completed_at": "2023-09-07T23:26:31.049846Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005423784255981445, "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": "2023-09-07T23:26:31.051361Z", "completed_at": "2023-09-07T23:26:31.054330Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.054792Z", "completed_at": "2023-09-07T23:26:31.054797Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0044269561767578125, "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": "2023-09-07T23:26:31.056141Z", "completed_at": "2023-09-07T23:26:31.059017Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.059459Z", "completed_at": "2023-09-07T23:26:31.059467Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004208803176879883, "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": "2023-09-07T23:26:31.061042Z", "completed_at": "2023-09-07T23:26:31.064115Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.064533Z", "completed_at": "2023-09-07T23:26:31.064538Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004507780075073242, "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": "2023-09-07T23:26:31.065994Z", "completed_at": "2023-09-07T23:26:31.068604Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.069015Z", "completed_at": "2023-09-07T23:26:31.069022Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003912925720214844, "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": "2023-09-07T23:26:31.070379Z", "completed_at": "2023-09-07T23:26:31.073090Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.073573Z", "completed_at": "2023-09-07T23:26:31.073577Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00414729118347168, "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": "2023-09-07T23:26:31.075104Z", "completed_at": "2023-09-07T23:26:31.080441Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.080869Z", "completed_at": "2023-09-07T23:26:31.080873Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006640195846557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.082295Z", "completed_at": "2023-09-07T23:26:31.087067Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.087539Z", "completed_at": "2023-09-07T23:26:31.087546Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006160259246826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__transaction_and_reporting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.089010Z", "completed_at": "2023-09-07T23:26:31.091812Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.092206Z", "completed_at": "2023-09-07T23:26:31.092210Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004064083099365234, "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": "2023-09-07T23:26:31.093457Z", "completed_at": "2023-09-07T23:26:31.095938Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.096336Z", "completed_at": "2023-09-07T23:26:31.096340Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003690004348754883, "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": "2023-09-07T23:26:31.097645Z", "completed_at": "2023-09-07T23:26:31.100666Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.101061Z", "completed_at": "2023-09-07T23:26:31.101067Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0042269229888916016, "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": "2023-09-07T23:26:31.102582Z", "completed_at": "2023-09-07T23:26:31.106520Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.106976Z", "completed_at": "2023-09-07T23:26:31.106985Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005430936813354492, "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": "2023-09-07T23:26:31.108343Z", "completed_at": "2023-09-07T23:26:31.111008Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.111425Z", "completed_at": "2023-09-07T23:26:31.111428Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.003899097442626953, "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": "2023-09-07T23:26:31.112866Z", "completed_at": "2023-09-07T23:26:31.115460Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.115851Z", "completed_at": "2023-09-07T23:26:31.115855Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038919448852539062, "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": "2023-09-07T23:26:31.117360Z", "completed_at": "2023-09-07T23:26:31.120425Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.120877Z", "completed_at": "2023-09-07T23:26:31.120882Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004523038864135742, "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": "2023-09-07T23:26:31.122258Z", "completed_at": "2023-09-07T23:26:31.127105Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.127529Z", "completed_at": "2023-09-07T23:26:31.127535Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00610804557800293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.128960Z", "completed_at": "2023-09-07T23:26:31.133002Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.133399Z", "completed_at": "2023-09-07T23:26:31.133403Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0052373409271240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__tran_and_reporting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.134662Z", "completed_at": "2023-09-07T23:26:31.137452Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.137865Z", "completed_at": "2023-09-07T23:26:31.137869Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004009246826171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__tran_lines_w_accounting_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.139404Z", "completed_at": "2023-09-07T23:26:31.143325Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.143889Z", "completed_at": "2023-09-07T23:26:31.143896Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005436897277832031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__tran_with_converted_amounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.145415Z", "completed_at": "2023-09-07T23:26:31.156169Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.156691Z", "completed_at": "2023-09-07T23:26:31.156701Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01217794418334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite2__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.158248Z", "completed_at": "2023-09-07T23:26:31.166672Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.167164Z", "completed_at": "2023-09-07T23:26:31.167171Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009808778762817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite2__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:28.357546Z", "completed_at": "2023-09-07T23:26:30.908722Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:30.909846Z", "completed_at": "2023-09-07T23:26:30.909849Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.8567140102386475, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.168871Z", "completed_at": "2023-09-07T23:26:31.214764Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.215904Z", "completed_at": "2023-09-07T23:26:31.215910Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.051590919494628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite2__transaction_details"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.216153Z", "completed_at": "2023-09-07T23:26:31.224120Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.224922Z", "completed_at": "2023-09-07T23:26:31.224928Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010457754135131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name__account_id.c5f0a480aa"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.221605Z", "completed_at": "2023-09-07T23:26:31.224679Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.225854Z", "completed_at": "2023-09-07T23:26:31.225856Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0058519840240478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.227868Z", "completed_at": "2023-09-07T23:26:31.233630Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.234433Z", "completed_at": "2023-09-07T23:26:31.234439Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008292198181152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.230863Z", "completed_at": "2023-09-07T23:26:31.234155Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.235391Z", "completed_at": "2023-09-07T23:26:31.235395Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008499860763549805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.eaaed6db80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.237412Z", "completed_at": "2023-09-07T23:26:31.243830Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.244477Z", "completed_at": "2023-09-07T23:26:31.244482Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00869297981262207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.240415Z", "completed_at": "2023-09-07T23:26:31.244248Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.245320Z", "completed_at": "2023-09-07T23:26:31.245323Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008842945098876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.247340Z", "completed_at": "2023-09-07T23:26:31.252997Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.253425Z", "completed_at": "2023-09-07T23:26:31.253431Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00780487060546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__transaction_lines_w_accounting_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.250571Z", "completed_at": "2023-09-07T23:26:31.253617Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.254793Z", "completed_at": "2023-09-07T23:26:31.254797Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008468866348266602, "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": "2023-09-07T23:26:31.256245Z", "completed_at": "2023-09-07T23:26:31.270064Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.270633Z", "completed_at": "2023-09-07T23:26:31.270639Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016013622283935547, "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": "2023-09-07T23:26:31.259942Z", "completed_at": "2023-09-07T23:26:31.271338Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.272464Z", "completed_at": "2023-09-07T23:26:31.272468Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014147043228149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.accepted_values_netsuite2__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.50c995eda5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.273468Z", "completed_at": "2023-09-07T23:26:31.279532Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.280018Z", "completed_at": "2023-09-07T23:26:31.280023Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008273124694824219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite2__transaction_details_transaction_line_id__transaction_id.993bc3c9b5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.277203Z", "completed_at": "2023-09-07T23:26:31.280868Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.281821Z", "completed_at": "2023-09-07T23:26:31.281825Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007940053939819336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.282061Z", "completed_at": "2023-09-07T23:26:31.285642Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.289267Z", "completed_at": "2023-09-07T23:26:31.289273Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008575916290283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.285864Z", "completed_at": "2023-09-07T23:26:31.290024Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.290449Z", "completed_at": "2023-09-07T23:26:31.290453Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005647182464599609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__transactions_with_converted_amounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.292568Z", "completed_at": "2023-09-07T23:26:31.307372Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.307826Z", "completed_at": "2023-09-07T23:26:31.307833Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01664590835571289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.298584Z", "completed_at": "2023-09-07T23:26:31.308511Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.309599Z", "completed_at": "2023-09-07T23:26:31.309603Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01841282844543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.310598Z", "completed_at": "2023-09-07T23:26:31.317091Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.317547Z", "completed_at": "2023-09-07T23:26:31.317551Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008844137191772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.314524Z", "completed_at": "2023-09-07T23:26:31.317744Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.318860Z", "completed_at": "2023-09-07T23:26:31.318863Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005561113357543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.320235Z", "completed_at": "2023-09-07T23:26:31.325917Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.326503Z", "completed_at": "2023-09-07T23:26:31.326509Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.007880210876464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.323268Z", "completed_at": "2023-09-07T23:26:31.327237Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.328329Z", "completed_at": "2023-09-07T23:26:31.328333Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006196022033691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.329174Z", "completed_at": "2023-09-07T23:26:31.336096Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.336550Z", "completed_at": "2023-09-07T23:26:31.336554Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00913095474243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.333684Z", "completed_at": "2023-09-07T23:26:31.336742Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.337665Z", "completed_at": "2023-09-07T23:26:31.337668Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004870891571044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:28.885192Z", "completed_at": "2023-09-07T23:26:31.480478Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.481041Z", "completed_at": "2023-09-07T23:26:31.481050Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.757059097290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:28.893217Z", "completed_at": "2023-09-07T23:26:31.481544Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.482036Z", "completed_at": "2023-09-07T23:26:31.482040Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.749091148376465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.647441Z", "completed_at": "2023-09-07T23:26:31.657894Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.659806Z", "completed_at": "2023-09-07T23:26:31.659812Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018520832061767578, "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": "2023-09-07T23:26:31.644201Z", "completed_at": "2023-09-07T23:26:31.658160Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.660425Z", "completed_at": "2023-09-07T23:26:31.660428Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019643068313598633, "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": "2023-09-07T23:26:31.652540Z", "completed_at": "2023-09-07T23:26:31.658816Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.661412Z", "completed_at": "2023-09-07T23:26:31.661415Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01910996437072754, "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": "2023-09-07T23:26:31.655338Z", "completed_at": "2023-09-07T23:26:31.659554Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.662090Z", "completed_at": "2023-09-07T23:26:31.662094Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019282102584838867, "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": "2023-09-07T23:26:31.664060Z", "completed_at": "2023-09-07T23:26:31.677351Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.677774Z", "completed_at": "2023-09-07T23:26:31.677779Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014697074890136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite__transaction_details"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.680289Z", "completed_at": "2023-09-07T23:26:31.685104Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.693824Z", "completed_at": "2023-09-07T23:26:31.693832Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015492916107177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.685371Z", "completed_at": "2023-09-07T23:26:31.694639Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.695898Z", "completed_at": "2023-09-07T23:26:31.695902Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013223886489868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.690992Z", "completed_at": "2023-09-07T23:26:31.695002Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.696314Z", "completed_at": "2023-09-07T23:26:31.696317Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013195991516113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-09-07T23:26:31.688246Z", "completed_at": "2023-09-07T23:26:31.695467Z"}, {"name": "execute", "started_at": "2023-09-07T23:26:31.696974Z", "completed_at": "2023-09-07T23:26:31.696978Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01397395133972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58"}], "elapsed_time": 38.30488586425781, "args": {"printer_width": 80, "enable_legacy_logger": false, "use_colors_file": true, "strict_mode": false, "version_check": true, "use_colors": true, "static_parser": true, "invocation_command": "dbt docs generate -t postgres", "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests/logs", "target": "postgres", "profiles_dir": "/Users/avinash.kunnath/.dbt", "print": true, "compile": true, "vars": {}, "populate_cache": true, "quiet": false, "log_format_file": "debug", "write_json": true, "log_level": "info", "warn_error_options": {"include": [], "exclude": []}, "log_level_file": "debug", "exclude": [], "macro_debugging": false, "partial_parse_file_diff": true, "introspect": true, "log_format": "default", "cache_selected_only": false, "select": [], "indirect_selection": "eager", "which": "generate", "log_file_max_bytes": 10485760, "favor_state": false, "partial_parse": true, "defer": false, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "send_anonymous_usage_stats": true, "empty_catalog": false}} +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.6", "generated_at": "2023-11-09T21:06:37.812300Z", "invocation_id": "190dc263-6a28-4c01-81fb-76da7503a406", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.689808Z", "completed_at": "2023-11-09T21:06:32.712796Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.724452Z", "completed_at": "2023-11-09T21:06:32.724462Z"}], "thread_id": "Thread-1", "execution_time": 0.042196035385131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.698898Z", "completed_at": "2023-11-09T21:06:32.719153Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.725774Z", "completed_at": "2023-11-09T21:06:32.725777Z"}], "thread_id": "Thread-2", "execution_time": 0.04279804229736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.706906Z", "completed_at": "2023-11-09T21:06:32.722878Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.726739Z", "completed_at": "2023-11-09T21:06:32.726742Z"}], "thread_id": "Thread-4", "execution_time": 0.0409550666809082, "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": "2023-11-09T21:06:32.709944Z", "completed_at": "2023-11-09T21:06:32.723159Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.727185Z", "completed_at": "2023-11-09T21:06:32.727188Z"}], "thread_id": "Thread-5", "execution_time": 0.04091501235961914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.703329Z", "completed_at": "2023-11-09T21:06:32.723380Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.727429Z", "completed_at": "2023-11-09T21:06:32.727432Z"}], "thread_id": "Thread-3", "execution_time": 0.04260683059692383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.713081Z", "completed_at": "2023-11-09T21:06:32.723690Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.727665Z", "completed_at": "2023-11-09T21:06:32.727667Z"}], "thread_id": "Thread-6", "execution_time": 0.041338205337524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.716418Z", "completed_at": "2023-11-09T21:06:32.724193Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.728354Z", "completed_at": "2023-11-09T21:06:32.728357Z"}], "thread_id": "Thread-7", "execution_time": 0.03389310836791992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.719415Z", "completed_at": "2023-11-09T21:06:32.724939Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.729366Z", "completed_at": "2023-11-09T21:06:32.729369Z"}], "thread_id": "Thread-8", "execution_time": 0.03448009490966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.736502Z", "completed_at": "2023-11-09T21:06:32.750005Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.765045Z", "completed_at": "2023-11-09T21:06:32.765052Z"}], "thread_id": "Thread-1", "execution_time": 0.03572201728820801, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.743435Z", "completed_at": "2023-11-09T21:06:32.762155Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.766125Z", "completed_at": "2023-11-09T21:06:32.766128Z"}], "thread_id": "Thread-4", "execution_time": 0.03458571434020996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.740544Z", "completed_at": "2023-11-09T21:06:32.762874Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.767771Z", "completed_at": "2023-11-09T21:06:32.767778Z"}], "thread_id": "Thread-2", "execution_time": 0.03724098205566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.746509Z", "completed_at": "2023-11-09T21:06:32.763354Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.768309Z", "completed_at": "2023-11-09T21:06:32.768315Z"}], "thread_id": "Thread-5", "execution_time": 0.036695241928100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.750283Z", "completed_at": "2023-11-09T21:06:32.764116Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.769280Z", "completed_at": "2023-11-09T21:06:32.769284Z"}], "thread_id": "Thread-3", "execution_time": 0.03710794448852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.755751Z", "completed_at": "2023-11-09T21:06:32.764472Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.769538Z", "completed_at": "2023-11-09T21:06:32.769545Z"}], "thread_id": "Thread-7", "execution_time": 0.03671097755432129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.753026Z", "completed_at": "2023-11-09T21:06:32.764755Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.769850Z", "completed_at": "2023-11-09T21:06:32.769853Z"}], "thread_id": "Thread-6", "execution_time": 0.0377500057220459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.758898Z", "completed_at": "2023-11-09T21:06:32.765556Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.771156Z", "completed_at": "2023-11-09T21:06:32.771160Z"}], "thread_id": "Thread-8", "execution_time": 0.035012006759643555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.779374Z", "completed_at": "2023-11-09T21:06:32.823994Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.830230Z", "completed_at": "2023-11-09T21:06:32.830236Z"}], "thread_id": "Thread-1", "execution_time": 0.05847001075744629, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.783155Z", "completed_at": "2023-11-09T21:06:32.824293Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.830687Z", "completed_at": "2023-11-09T21:06:32.830689Z"}], "thread_id": "Thread-4", "execution_time": 0.05747580528259277, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.813690Z", "completed_at": "2023-11-09T21:06:32.827923Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.831514Z", "completed_at": "2023-11-09T21:06:32.831517Z"}], "thread_id": "Thread-5", "execution_time": 0.05620408058166504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.810858Z", "completed_at": "2023-11-09T21:06:32.828214Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.831742Z", "completed_at": "2023-11-09T21:06:32.831744Z"}], "thread_id": "Thread-2", "execution_time": 0.05733299255371094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.816310Z", "completed_at": "2023-11-09T21:06:32.828964Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.833140Z", "completed_at": "2023-11-09T21:06:32.833143Z"}], "thread_id": "Thread-3", "execution_time": 0.057333946228027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.818815Z", "completed_at": "2023-11-09T21:06:32.829237Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.833382Z", "completed_at": "2023-11-09T21:06:32.833385Z"}], "thread_id": "Thread-7", "execution_time": 0.057469844818115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.821507Z", "completed_at": "2023-11-09T21:06:32.829513Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.833610Z", "completed_at": "2023-11-09T21:06:32.833612Z"}], "thread_id": "Thread-6", "execution_time": 0.05758786201477051, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.824546Z", "completed_at": "2023-11-09T21:06:32.830464Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.835019Z", "completed_at": "2023-11-09T21:06:32.835022Z"}], "thread_id": "Thread-8", "execution_time": 0.05534625053405762, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.842008Z", "completed_at": "2023-11-09T21:06:32.858456Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.866873Z", "completed_at": "2023-11-09T21:06:32.866878Z"}], "thread_id": "Thread-1", "execution_time": 0.03150010108947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.845027Z", "completed_at": "2023-11-09T21:06:32.858686Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.867135Z", "completed_at": "2023-11-09T21:06:32.867139Z"}], "thread_id": "Thread-4", "execution_time": 0.031183242797851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.847996Z", "completed_at": "2023-11-09T21:06:32.863793Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.868064Z", "completed_at": "2023-11-09T21:06:32.868067Z"}], "thread_id": "Thread-5", "execution_time": 0.03120899200439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.850319Z", "completed_at": "2023-11-09T21:06:32.864117Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.868299Z", "completed_at": "2023-11-09T21:06:32.868302Z"}], "thread_id": "Thread-2", "execution_time": 0.03132200241088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.853024Z", "completed_at": "2023-11-09T21:06:32.864826Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.869701Z", "completed_at": "2023-11-09T21:06:32.869705Z"}], "thread_id": "Thread-3", "execution_time": 0.03158402442932129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.856106Z", "completed_at": "2023-11-09T21:06:32.865097Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.869941Z", "completed_at": "2023-11-09T21:06:32.869944Z"}], "thread_id": "Thread-7", "execution_time": 0.03174090385437012, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.861358Z", "completed_at": "2023-11-09T21:06:32.865655Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.870172Z", "completed_at": "2023-11-09T21:06:32.870175Z"}], "thread_id": "Thread-8", "execution_time": 0.028469085693359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.858918Z", "completed_at": "2023-11-09T21:06:32.866610Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.871290Z", "completed_at": "2023-11-09T21:06:32.871292Z"}], "thread_id": "Thread-6", "execution_time": 0.03280901908874512, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.882372Z", "completed_at": "2023-11-09T21:06:32.898166Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.906158Z", "completed_at": "2023-11-09T21:06:32.906168Z"}], "thread_id": "Thread-4", "execution_time": 0.03338789939880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.879203Z", "completed_at": "2023-11-09T21:06:32.900808Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.906835Z", "completed_at": "2023-11-09T21:06:32.906839Z"}], "thread_id": "Thread-1", "execution_time": 0.034644365310668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.885773Z", "completed_at": "2023-11-09T21:06:32.903816Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.907257Z", "completed_at": "2023-11-09T21:06:32.907260Z"}], "thread_id": "Thread-5", "execution_time": 0.03384995460510254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.889462Z", "completed_at": "2023-11-09T21:06:32.904086Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.907680Z", "completed_at": "2023-11-09T21:06:32.907682Z"}], "thread_id": "Thread-2", "execution_time": 0.0342099666595459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.892651Z", "completed_at": "2023-11-09T21:06:32.904676Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.908630Z", "completed_at": "2023-11-09T21:06:32.908633Z"}], "thread_id": "Thread-3", "execution_time": 0.03418898582458496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.895593Z", "completed_at": "2023-11-09T21:06:32.905160Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.909353Z", "completed_at": "2023-11-09T21:06:32.909356Z"}], "thread_id": "Thread-7", "execution_time": 0.034577131271362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.898426Z", "completed_at": "2023-11-09T21:06:32.905713Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.910131Z", "completed_at": "2023-11-09T21:06:32.910135Z"}], "thread_id": "Thread-8", "execution_time": 0.03512883186340332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.901148Z", "completed_at": "2023-11-09T21:06:32.906391Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.911173Z", "completed_at": "2023-11-09T21:06:32.911177Z"}], "thread_id": "Thread-6", "execution_time": 0.03583097457885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.919395Z", "completed_at": "2023-11-09T21:06:32.921859Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.932671Z", "completed_at": "2023-11-09T21:06:32.932676Z"}], "thread_id": "Thread-4", "execution_time": 0.021431922912597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.922810Z", "completed_at": "2023-11-09T21:06:32.923829Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.934286Z", "completed_at": "2023-11-09T21:06:32.934289Z"}], "thread_id": "Thread-1", "execution_time": 0.021244049072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_account_type_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.924298Z", "completed_at": "2023-11-09T21:06:32.925261Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.934707Z", "completed_at": "2023-11-09T21:06:32.934709Z"}], "thread_id": "Thread-5", "execution_time": 0.021297931671142578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.925717Z", "completed_at": "2023-11-09T21:06:32.926674Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.935116Z", "completed_at": "2023-11-09T21:06:32.935119Z"}], "thread_id": "Thread-2", "execution_time": 0.02135300636291504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_book_sub_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.927347Z", "completed_at": "2023-11-09T21:06:32.928313Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.936110Z", "completed_at": "2023-11-09T21:06:32.936115Z"}], "thread_id": "Thread-3", "execution_time": 0.021414756774902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.928763Z", "completed_at": "2023-11-09T21:06:32.929881Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.936879Z", "completed_at": "2023-11-09T21:06:32.936882Z"}], "thread_id": "Thread-7", "execution_time": 0.02136707305908203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.930394Z", "completed_at": "2023-11-09T21:06:32.932223Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.937574Z", "completed_at": "2023-11-09T21:06:32.937577Z"}], "thread_id": "Thread-8", "execution_time": 0.02139902114868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_classification_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.932901Z", "completed_at": "2023-11-09T21:06:32.933841Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.938491Z", "completed_at": "2023-11-09T21:06:32.938494Z"}], "thread_id": "Thread-6", "execution_time": 0.019018888473510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_consolidated_exchange_rate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.945182Z", "completed_at": "2023-11-09T21:06:32.946507Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.956565Z", "completed_at": "2023-11-09T21:06:32.956570Z"}], "thread_id": "Thread-4", "execution_time": 0.018615007400512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_currency_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.947312Z", "completed_at": "2023-11-09T21:06:32.948315Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.958131Z", "completed_at": "2023-11-09T21:06:32.958134Z"}], "thread_id": "Thread-1", "execution_time": 0.018481731414794922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.948753Z", "completed_at": "2023-11-09T21:06:32.949722Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.958546Z", "completed_at": "2023-11-09T21:06:32.958549Z"}], "thread_id": "Thread-5", "execution_time": 0.018545150756835938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.950154Z", "completed_at": "2023-11-09T21:06:32.951103Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.958949Z", "completed_at": "2023-11-09T21:06:32.958954Z"}], "thread_id": "Thread-2", "execution_time": 0.018575191497802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_entities_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.951712Z", "completed_at": "2023-11-09T21:06:32.953440Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.959816Z", "completed_at": "2023-11-09T21:06:32.959819Z"}], "thread_id": "Thread-3", "execution_time": 0.01871800422668457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_entity_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.953894Z", "completed_at": "2023-11-09T21:06:32.954810Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.960465Z", "completed_at": "2023-11-09T21:06:32.960468Z"}], "thread_id": "Thread-7", "execution_time": 0.018852710723876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.955237Z", "completed_at": "2023-11-09T21:06:32.956145Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.961103Z", "completed_at": "2023-11-09T21:06:32.961106Z"}], "thread_id": "Thread-8", "execution_time": 0.019010066986083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_job_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.956794Z", "completed_at": "2023-11-09T21:06:32.957703Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.961962Z", "completed_at": "2023-11-09T21:06:32.961965Z"}], "thread_id": "Thread-6", "execution_time": 0.017899036407470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_location_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.968437Z", "completed_at": "2023-11-09T21:06:32.969588Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.979398Z", "completed_at": "2023-11-09T21:06:32.979404Z"}], "thread_id": "Thread-4", "execution_time": 0.017983198165893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_location_main_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.970372Z", "completed_at": "2023-11-09T21:06:32.971358Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.980966Z", "completed_at": "2023-11-09T21:06:32.980970Z"}], "thread_id": "Thread-1", "execution_time": 0.017841815948486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_subsidiary_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.971784Z", "completed_at": "2023-11-09T21:06:32.973468Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.981377Z", "completed_at": "2023-11-09T21:06:32.981380Z"}], "thread_id": "Thread-5", "execution_time": 0.017945051193237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_tran_acct_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.973894Z", "completed_at": "2023-11-09T21:06:32.974807Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.981777Z", "completed_at": "2023-11-09T21:06:32.981780Z"}], "thread_id": "Thread-2", "execution_time": 0.018054962158203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.975414Z", "completed_at": "2023-11-09T21:06:32.976327Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.982631Z", "completed_at": "2023-11-09T21:06:32.982634Z"}], "thread_id": "Thread-3", "execution_time": 0.018243074417114258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_transaction_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.976742Z", "completed_at": "2023-11-09T21:06:32.977649Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.983273Z", "completed_at": "2023-11-09T21:06:32.983276Z"}], "thread_id": "Thread-7", "execution_time": 0.018388032913208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_category_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.978072Z", "completed_at": "2023-11-09T21:06:32.978981Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.983915Z", "completed_at": "2023-11-09T21:06:32.983917Z"}], "thread_id": "Thread-8", "execution_time": 0.01854705810546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite2_vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.979628Z", "completed_at": "2023-11-09T21:06:32.980543Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:32.984784Z", "completed_at": "2023-11-09T21:06:32.984787Z"}], "thread_id": "Thread-6", "execution_time": 0.01762080192565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_books_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.991189Z", "completed_at": "2023-11-09T21:06:32.992997Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.003285Z", "completed_at": "2023-11-09T21:06:33.003291Z"}], "thread_id": "Thread-4", "execution_time": 0.01920604705810547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_accounting_periods_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.993761Z", "completed_at": "2023-11-09T21:06:32.994699Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.004941Z", "completed_at": "2023-11-09T21:06:33.004944Z"}], "thread_id": "Thread-1", "execution_time": 0.019138097763061523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.995111Z", "completed_at": "2023-11-09T21:06:32.996035Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.005366Z", "completed_at": "2023-11-09T21:06:33.005369Z"}], "thread_id": "Thread-5", "execution_time": 0.019254684448242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_classes_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.996472Z", "completed_at": "2023-11-09T21:06:32.997420Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.005776Z", "completed_at": "2023-11-09T21:06:33.005778Z"}], "thread_id": "Thread-2", "execution_time": 0.01937389373779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_consolidated_exchange_rates_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.998056Z", "completed_at": "2023-11-09T21:06:32.998988Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.006669Z", "completed_at": "2023-11-09T21:06:33.006672Z"}], "thread_id": "Thread-3", "execution_time": 0.019559860229492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_currencies_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:32.999441Z", "completed_at": "2023-11-09T21:06:33.000393Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.007343Z", "completed_at": "2023-11-09T21:06:33.007346Z"}], "thread_id": "Thread-7", "execution_time": 0.019696950912475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_customers_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.000900Z", "completed_at": "2023-11-09T21:06:33.002760Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.007982Z", "completed_at": "2023-11-09T21:06:33.007985Z"}], "thread_id": "Thread-8", "execution_time": 0.019855737686157227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_departments_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.003521Z", "completed_at": "2023-11-09T21:06:33.004505Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.008860Z", "completed_at": "2023-11-09T21:06:33.008863Z"}], "thread_id": "Thread-6", "execution_time": 0.018290042877197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_expense_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.015429Z", "completed_at": "2023-11-09T21:06:33.016574Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.026717Z", "completed_at": "2023-11-09T21:06:33.026722Z"}], "thread_id": "Thread-4", "execution_time": 0.01865673065185547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_income_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.017340Z", "completed_at": "2023-11-09T21:06:33.018319Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.028433Z", "completed_at": "2023-11-09T21:06:33.028437Z"}], "thread_id": "Thread-1", "execution_time": 0.018565893173217773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_items_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.018774Z", "completed_at": "2023-11-09T21:06:33.019741Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.028858Z", "completed_at": "2023-11-09T21:06:33.028861Z"}], "thread_id": "Thread-5", "execution_time": 0.018687963485717773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_locations_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.020193Z", "completed_at": "2023-11-09T21:06:33.021138Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.029274Z", "completed_at": "2023-11-09T21:06:33.029276Z"}], "thread_id": "Thread-2", "execution_time": 0.018811941146850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_subsidiaries_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.021748Z", "completed_at": "2023-11-09T21:06:33.023440Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.030197Z", "completed_at": "2023-11-09T21:06:33.030200Z"}], "thread_id": "Thread-3", "execution_time": 0.018946170806884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_transaction_lines_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.023884Z", "completed_at": "2023-11-09T21:06:33.024827Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.030862Z", "completed_at": "2023-11-09T21:06:33.030865Z"}], "thread_id": "Thread-7", "execution_time": 0.019049882888793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_transactions_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.025264Z", "completed_at": "2023-11-09T21:06:33.026209Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.031526Z", "completed_at": "2023-11-09T21:06:33.031529Z"}], "thread_id": "Thread-8", "execution_time": 0.019201040267944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_vendor_types_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.026976Z", "completed_at": "2023-11-09T21:06:33.027972Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.032404Z", "completed_at": "2023-11-09T21:06:33.032407Z"}], "thread_id": "Thread-6", "execution_time": 0.01830005645751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_integration_tests.netsuite_vendors_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.056645Z", "completed_at": "2023-11-09T21:06:33.758802Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.759419Z", "completed_at": "2023-11-09T21:06:33.759427Z"}], "thread_id": "Thread-2", "execution_time": 0.8228321075439453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.047502Z", "completed_at": "2023-11-09T21:06:33.900348Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.903981Z", "completed_at": "2023-11-09T21:06:33.903986Z"}], "thread_id": "Thread-1", "execution_time": 0.948591947555542, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.065788Z", "completed_at": "2023-11-09T21:06:33.902839Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.910826Z", "completed_at": "2023-11-09T21:06:33.910828Z"}], "thread_id": "Thread-7", "execution_time": 0.9473469257354736, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.061496Z", "completed_at": "2023-11-09T21:06:33.902552Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.910598Z", "completed_at": "2023-11-09T21:06:33.910601Z"}], "thread_id": "Thread-3", "execution_time": 0.9491500854492188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.101910Z", "completed_at": "2023-11-09T21:06:33.901567Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.909728Z", "completed_at": "2023-11-09T21:06:33.909733Z"}], "thread_id": "Thread-6", "execution_time": 0.9403729438781738, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.052032Z", "completed_at": "2023-11-09T21:06:33.903722Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.911703Z", "completed_at": "2023-11-09T21:06:33.911706Z"}], "thread_id": "Thread-5", "execution_time": 0.9516911506652832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.070000Z", "completed_at": "2023-11-09T21:06:33.903302Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.911278Z", "completed_at": "2023-11-09T21:06:33.911281Z"}], "thread_id": "Thread-8", "execution_time": 0.9501280784606934, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.039153Z", "completed_at": "2023-11-09T21:06:33.903071Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:33.911054Z", "completed_at": "2023-11-09T21:06:33.911057Z"}], "thread_id": "Thread-4", "execution_time": 0.9547719955444336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.904221Z", "completed_at": "2023-11-09T21:06:34.581613Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.582451Z", "completed_at": "2023-11-09T21:06:34.582471Z"}], "thread_id": "Thread-2", "execution_time": 0.7358956336975098, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.011267Z", "completed_at": "2023-11-09T21:06:34.688121Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.688774Z", "completed_at": "2023-11-09T21:06:34.688781Z"}], "thread_id": "Thread-6", "execution_time": 0.8626852035522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.024411Z", "completed_at": "2023-11-09T21:06:34.793057Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.857381Z", "completed_at": "2023-11-09T21:06:34.857385Z"}], "thread_id": "Thread-4", "execution_time": 0.9314019680023193, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:33.995152Z", "completed_at": "2023-11-09T21:06:34.849247Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.859393Z", "completed_at": "2023-11-09T21:06:34.859398Z"}], "thread_id": "Thread-1", "execution_time": 0.9373290538787842, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.000937Z", "completed_at": "2023-11-09T21:06:34.858122Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.861053Z", "completed_at": "2023-11-09T21:06:34.861056Z"}], "thread_id": "Thread-7", "execution_time": 0.9376471042633057, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.006414Z", "completed_at": "2023-11-09T21:06:34.858837Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.861920Z", "completed_at": "2023-11-09T21:06:34.861923Z"}], "thread_id": "Thread-3", "execution_time": 0.9382727146148682, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.019888Z", "completed_at": "2023-11-09T21:06:34.858377Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.861293Z", "completed_at": "2023-11-09T21:06:34.861297Z"}], "thread_id": "Thread-8", "execution_time": 0.9378302097320557, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.015454Z", "completed_at": "2023-11-09T21:06:34.860402Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:34.866859Z", "completed_at": "2023-11-09T21:06:34.866863Z"}], "thread_id": "Thread-5", "execution_time": 0.9450018405914307, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.639532Z", "completed_at": "2023-11-09T21:06:35.336868Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.337803Z", "completed_at": "2023-11-09T21:06:35.337820Z"}], "thread_id": "Thread-2", "execution_time": 0.7517390251159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.940207Z", "completed_at": "2023-11-09T21:06:35.561962Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.563231Z", "completed_at": "2023-11-09T21:06:35.563235Z"}], "thread_id": "Thread-1", "execution_time": 0.7072348594665527, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.862564Z", "completed_at": "2023-11-09T21:06:35.561591Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.562901Z", "completed_at": "2023-11-09T21:06:35.562909Z"}], "thread_id": "Thread-6", "execution_time": 0.7780470848083496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.932879Z", "completed_at": "2023-11-09T21:06:35.640599Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.651706Z", "completed_at": "2023-11-09T21:06:35.651712Z"}], "thread_id": "Thread-4", "execution_time": 0.7987930774688721, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.952861Z", "completed_at": "2023-11-09T21:06:35.726743Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.728614Z", "completed_at": "2023-11-09T21:06:35.728619Z"}], "thread_id": "Thread-3", "execution_time": 0.8419578075408936, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.961944Z", "completed_at": "2023-11-09T21:06:35.728210Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.730553Z", "completed_at": "2023-11-09T21:06:35.730559Z"}], "thread_id": "Thread-5", "execution_time": 0.8480141162872314, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.947713Z", "completed_at": "2023-11-09T21:06:35.729389Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.735399Z", "completed_at": "2023-11-09T21:06:35.735403Z"}], "thread_id": "Thread-7", "execution_time": 0.8764400482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:34.957784Z", "completed_at": "2023-11-09T21:06:35.728842Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:35.730838Z", "completed_at": "2023-11-09T21:06:35.730842Z"}], "thread_id": "Thread-8", "execution_time": 0.8707320690155029, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.393095Z", "completed_at": "2023-11-09T21:06:36.087531Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.088293Z", "completed_at": "2023-11-09T21:06:36.088302Z"}], "thread_id": "Thread-2", "execution_time": 0.7534050941467285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.641615Z", "completed_at": "2023-11-09T21:06:36.237808Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.238650Z", "completed_at": "2023-11-09T21:06:36.238663Z"}], "thread_id": "Thread-1", "execution_time": 0.6577582359313965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.646939Z", "completed_at": "2023-11-09T21:06:36.290059Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.290962Z", "completed_at": "2023-11-09T21:06:36.290970Z"}], "thread_id": "Thread-6", "execution_time": 0.7081022262573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.789318Z", "completed_at": "2023-11-09T21:06:36.425735Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.426540Z", "completed_at": "2023-11-09T21:06:36.426550Z"}], "thread_id": "Thread-3", "execution_time": 0.7023649215698242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.731087Z", "completed_at": "2023-11-09T21:06:36.451947Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.453083Z", "completed_at": "2023-11-09T21:06:36.453088Z"}], "thread_id": "Thread-4", "execution_time": 0.787736177444458, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.796443Z", "completed_at": "2023-11-09T21:06:36.452261Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.453383Z", "completed_at": "2023-11-09T21:06:36.453386Z"}], "thread_id": "Thread-5", "execution_time": 0.7215619087219238, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.823831Z", "completed_at": "2023-11-09T21:06:36.515801Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.517878Z", "completed_at": "2023-11-09T21:06:36.517882Z"}], "thread_id": "Thread-8", "execution_time": 0.7519512176513672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:35.818090Z", "completed_at": "2023-11-09T21:06:36.516104Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.518779Z", "completed_at": "2023-11-09T21:06:36.518784Z"}], "thread_id": "Thread-7", "execution_time": 0.7662489414215088, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:36.147363Z", "completed_at": "2023-11-09T21:06:36.899326Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.899796Z", "completed_at": "2023-11-09T21:06:36.899803Z"}], "thread_id": "Thread-2", "execution_time": 0.8450419902801514, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:36.992516Z", "completed_at": "2023-11-09T21:06:37.001122Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.001612Z", "completed_at": "2023-11-09T21:06:37.001617Z"}], "thread_id": "Thread-2", "execution_time": 0.010236978530883789, "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": "2023-11-09T21:06:37.003200Z", "completed_at": "2023-11-09T21:06:37.012798Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.013249Z", "completed_at": "2023-11-09T21:06:37.013253Z"}], "thread_id": "Thread-2", "execution_time": 0.011038780212402344, "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": "2023-11-09T21:06:36.299738Z", "completed_at": "2023-11-09T21:06:36.975381Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:36.975897Z", "completed_at": "2023-11-09T21:06:36.975902Z"}], "thread_id": "Thread-1", "execution_time": 0.753720760345459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.015226Z", "completed_at": "2023-11-09T21:06:37.056076Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.056534Z", "completed_at": "2023-11-09T21:06:37.056537Z"}], "thread_id": "Thread-2", "execution_time": 0.04268479347229004, "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": "2023-11-09T21:06:37.053277Z", "completed_at": "2023-11-09T21:06:37.060736Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.061222Z", "completed_at": "2023-11-09T21:06:37.061226Z"}], "thread_id": "Thread-1", "execution_time": 0.008902788162231445, "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": "2023-11-09T21:06:37.057915Z", "completed_at": "2023-11-09T21:06:37.062520Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.065712Z", "completed_at": "2023-11-09T21:06:37.065716Z"}], "thread_id": "Thread-2", "execution_time": 0.008744955062866211, "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": "2023-11-09T21:06:37.063128Z", "completed_at": "2023-11-09T21:06:37.069837Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.070279Z", "completed_at": "2023-11-09T21:06:37.070283Z"}], "thread_id": "Thread-1", "execution_time": 0.008505821228027344, "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": "2023-11-09T21:06:37.067221Z", "completed_at": "2023-11-09T21:06:37.071205Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.072164Z", "completed_at": "2023-11-09T21:06:37.072167Z"}], "thread_id": "Thread-2", "execution_time": 0.008654117584228516, "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": "2023-11-09T21:06:37.072400Z", "completed_at": "2023-11-09T21:06:37.076735Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.081226Z", "completed_at": "2023-11-09T21:06:37.081231Z"}], "thread_id": "Thread-1", "execution_time": 0.010231971740722656, "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": "2023-11-09T21:06:37.077389Z", "completed_at": "2023-11-09T21:06:37.085656Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.086118Z", "completed_at": "2023-11-09T21:06:37.086122Z"}], "thread_id": "Thread-2", "execution_time": 0.010336875915527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.082772Z", "completed_at": "2023-11-09T21:06:37.086340Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.087487Z", "completed_at": "2023-11-09T21:06:37.087491Z"}], "thread_id": "Thread-1", "execution_time": 0.0060079097747802734, "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": "2023-11-09T21:06:37.089006Z", "completed_at": "2023-11-09T21:06:37.095933Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.096751Z", "completed_at": "2023-11-09T21:06:37.096756Z"}], "thread_id": "Thread-2", "execution_time": 0.009659051895141602, "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": "2023-11-09T21:06:37.093160Z", "completed_at": "2023-11-09T21:06:37.097010Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.098159Z", "completed_at": "2023-11-09T21:06:37.098163Z"}], "thread_id": "Thread-1", "execution_time": 0.007083892822265625, "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": "2023-11-09T21:06:37.099620Z", "completed_at": "2023-11-09T21:06:37.106815Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.107267Z", "completed_at": "2023-11-09T21:06:37.107271Z"}], "thread_id": "Thread-2", "execution_time": 0.009265899658203125, "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": "2023-11-09T21:06:37.102921Z", "completed_at": "2023-11-09T21:06:37.108169Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.109151Z", "completed_at": "2023-11-09T21:06:37.109154Z"}], "thread_id": "Thread-1", "execution_time": 0.00980997085571289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.109375Z", "completed_at": "2023-11-09T21:06:37.116103Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.116569Z", "completed_at": "2023-11-09T21:06:37.116574Z"}], "thread_id": "Thread-2", "execution_time": 0.008533239364624023, "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": "2023-11-09T21:06:37.113343Z", "completed_at": "2023-11-09T21:06:37.117465Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.118450Z", "completed_at": "2023-11-09T21:06:37.118453Z"}], "thread_id": "Thread-1", "execution_time": 0.008883953094482422, "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": "2023-11-09T21:06:36.351144Z", "completed_at": "2023-11-09T21:06:37.014606Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.051469Z", "completed_at": "2023-11-09T21:06:37.051476Z"}], "thread_id": "Thread-6", "execution_time": 0.7762241363525391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.118690Z", "completed_at": "2023-11-09T21:06:37.125779Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.127657Z", "completed_at": "2023-11-09T21:06:37.127661Z"}], "thread_id": "Thread-2", "execution_time": 0.010875940322875977, "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": "2023-11-09T21:06:37.122743Z", "completed_at": "2023-11-09T21:06:37.126869Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.128894Z", "completed_at": "2023-11-09T21:06:37.128897Z"}], "thread_id": "Thread-1", "execution_time": 0.007510662078857422, "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": "2023-11-09T21:06:37.129998Z", "completed_at": "2023-11-09T21:06:37.137648Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.140882Z", "completed_at": "2023-11-09T21:06:37.140887Z"}], "thread_id": "Thread-6", "execution_time": 0.01345205307006836, "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": "2023-11-09T21:06:37.133928Z", "completed_at": "2023-11-09T21:06:37.141141Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.142532Z", "completed_at": "2023-11-09T21:06:37.142536Z"}], "thread_id": "Thread-2", "execution_time": 0.01071619987487793, "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": "2023-11-09T21:06:37.137909Z", "completed_at": "2023-11-09T21:06:37.142303Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.143934Z", "completed_at": "2023-11-09T21:06:37.143937Z"}], "thread_id": "Thread-1", "execution_time": 0.013649702072143555, "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": "2023-11-09T21:06:37.144423Z", "completed_at": "2023-11-09T21:06:37.151981Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.155101Z", "completed_at": "2023-11-09T21:06:37.155106Z"}], "thread_id": "Thread-6", "execution_time": 0.012775897979736328, "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": "2023-11-09T21:06:37.152262Z", "completed_at": "2023-11-09T21:06:37.156475Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.160932Z", "completed_at": "2023-11-09T21:06:37.160937Z"}], "thread_id": "Thread-1", "execution_time": 0.01327824592590332, "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": "2023-11-09T21:06:37.148723Z", "completed_at": "2023-11-09T21:06:37.156708Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.161185Z", "completed_at": "2023-11-09T21:06:37.161189Z"}], "thread_id": "Thread-2", "execution_time": 0.014579057693481445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.157523Z", "completed_at": "2023-11-09T21:06:37.163250Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.167002Z", "completed_at": "2023-11-09T21:06:37.167007Z"}], "thread_id": "Thread-6", "execution_time": 0.013885021209716797, "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": "2023-11-09T21:06:37.167254Z", "completed_at": "2023-11-09T21:06:37.173988Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.174895Z", "completed_at": "2023-11-09T21:06:37.174900Z"}], "thread_id": "Thread-2", "execution_time": 0.012263059616088867, "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": "2023-11-09T21:06:37.164343Z", "completed_at": "2023-11-09T21:06:37.174225Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.175335Z", "completed_at": "2023-11-09T21:06:37.175338Z"}], "thread_id": "Thread-1", "execution_time": 0.013653993606567383, "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": "2023-11-09T21:06:37.171206Z", "completed_at": "2023-11-09T21:06:37.175116Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.184979Z", "completed_at": "2023-11-09T21:06:37.184983Z"}], "thread_id": "Thread-6", "execution_time": 0.0342409610748291, "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": "2023-11-09T21:06:37.259731Z", "completed_at": "2023-11-09T21:06:37.267086Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.271880Z", "completed_at": "2023-11-09T21:06:37.271882Z"}], "thread_id": "Thread-2", "execution_time": 0.08749103546142578, "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": "2023-11-09T21:06:37.262875Z", "completed_at": "2023-11-09T21:06:37.267526Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.272167Z", "completed_at": "2023-11-09T21:06:37.272169Z"}], "thread_id": "Thread-1", "execution_time": 0.057240962982177734, "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": "2023-11-09T21:06:37.267966Z", "completed_at": "2023-11-09T21:06:37.272399Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.274483Z", "completed_at": "2023-11-09T21:06:37.274487Z"}], "thread_id": "Thread-6", "execution_time": 0.012999773025512695, "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": "2023-11-09T21:06:37.276425Z", "completed_at": "2023-11-09T21:06:37.286219Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.286638Z", "completed_at": "2023-11-09T21:06:37.286642Z"}], "thread_id": "Thread-2", "execution_time": 0.012286186218261719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.279594Z", "completed_at": "2023-11-09T21:06:37.293478Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.294441Z", "completed_at": "2023-11-09T21:06:37.294446Z"}], "thread_id": "Thread-1", "execution_time": 0.020305871963500977, "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": "2023-11-09T21:06:37.283514Z", "completed_at": "2023-11-09T21:06:37.293732Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.294940Z", "completed_at": "2023-11-09T21:06:37.294943Z"}], "thread_id": "Thread-6", "execution_time": 0.013135910034179688, "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": "2023-11-09T21:06:37.287997Z", "completed_at": "2023-11-09T21:06:37.294695Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.296566Z", "completed_at": "2023-11-09T21:06:37.296569Z"}], "thread_id": "Thread-2", "execution_time": 0.010039806365966797, "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": "2023-11-09T21:06:37.298781Z", "completed_at": "2023-11-09T21:06:37.308469Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.308915Z", "completed_at": "2023-11-09T21:06:37.308920Z"}], "thread_id": "Thread-1", "execution_time": 0.012254953384399414, "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": "2023-11-09T21:06:37.301974Z", "completed_at": "2023-11-09T21:06:37.312897Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.313401Z", "completed_at": "2023-11-09T21:06:37.313405Z"}], "thread_id": "Thread-6", "execution_time": 0.01622605323791504, "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": "2023-11-09T21:06:37.304979Z", "completed_at": "2023-11-09T21:06:37.313648Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.315028Z", "completed_at": "2023-11-09T21:06:37.315032Z"}], "thread_id": "Thread-2", "execution_time": 0.014346122741699219, "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": "2023-11-09T21:06:37.310301Z", "completed_at": "2023-11-09T21:06:37.314539Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.316252Z", "completed_at": "2023-11-09T21:06:37.316255Z"}], "thread_id": "Thread-1", "execution_time": 0.00728297233581543, "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": "2023-11-09T21:06:37.317362Z", "completed_at": "2023-11-09T21:06:37.325819Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.328996Z", "completed_at": "2023-11-09T21:06:37.329001Z"}], "thread_id": "Thread-6", "execution_time": 0.01396322250366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:36.521090Z", "completed_at": "2023-11-09T21:06:37.216557Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.265492Z", "completed_at": "2023-11-09T21:06:37.265498Z"}], "thread_id": "Thread-4", "execution_time": 0.8125009536743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:36.584270Z", "completed_at": "2023-11-09T21:06:37.266840Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.271627Z", "completed_at": "2023-11-09T21:06:37.271631Z"}], "thread_id": "Thread-7", "execution_time": 0.7491819858551025, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:36.525572Z", "completed_at": "2023-11-09T21:06:37.255293Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.267315Z", "completed_at": "2023-11-09T21:06:37.267318Z"}], "thread_id": "Thread-5", "execution_time": 0.8132190704345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:36.492610Z", "completed_at": "2023-11-09T21:06:37.255539Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.267744Z", "completed_at": "2023-11-09T21:06:37.267747Z"}], "thread_id": "Thread-3", "execution_time": 0.8421247005462646, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.322855Z", "completed_at": "2023-11-09T21:06:37.331202Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.337359Z", "completed_at": "2023-11-09T21:06:37.337363Z"}], "thread_id": "Thread-2", "execution_time": 0.02329707145690918, "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": "2023-11-09T21:06:37.326105Z", "completed_at": "2023-11-09T21:06:37.331435Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.338152Z", "completed_at": "2023-11-09T21:06:37.338155Z"}], "thread_id": "Thread-1", "execution_time": 0.023550987243652344, "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": "2023-11-09T21:06:37.334629Z", "completed_at": "2023-11-09T21:06:37.346327Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.357347Z", "completed_at": "2023-11-09T21:06:37.357352Z"}], "thread_id": "Thread-6", "execution_time": 0.031216144561767578, "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": "2023-11-09T21:06:37.348656Z", "completed_at": "2023-11-09T21:06:37.360974Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.369886Z", "completed_at": "2023-11-09T21:06:37.369890Z"}], "thread_id": "Thread-4", "execution_time": 0.03313899040222168, "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": "2023-11-09T21:06:37.354420Z", "completed_at": "2023-11-09T21:06:37.361698Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.370748Z", "completed_at": "2023-11-09T21:06:37.370752Z"}], "thread_id": "Thread-5", "execution_time": 0.02711796760559082, "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": "2023-11-09T21:06:37.351900Z", "completed_at": "2023-11-09T21:06:37.362165Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.371449Z", "completed_at": "2023-11-09T21:06:37.371452Z"}], "thread_id": "Thread-7", "execution_time": 0.028326034545898438, "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": "2023-11-09T21:06:37.357787Z", "completed_at": "2023-11-09T21:06:37.368696Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.372133Z", "completed_at": "2023-11-09T21:06:37.372137Z"}], "thread_id": "Thread-3", "execution_time": 0.027712106704711914, "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": "2023-11-09T21:06:37.362431Z", "completed_at": "2023-11-09T21:06:37.370973Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.377596Z", "completed_at": "2023-11-09T21:06:37.377600Z"}], "thread_id": "Thread-2", "execution_time": 0.02792811393737793, "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": "2023-11-09T21:06:37.365108Z", "completed_at": "2023-11-09T21:06:37.371196Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.377839Z", "completed_at": "2023-11-09T21:06:37.377842Z"}], "thread_id": "Thread-1", "execution_time": 0.02290487289428711, "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": "2023-11-09T21:06:37.374546Z", "completed_at": "2023-11-09T21:06:37.380744Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.391435Z", "completed_at": "2023-11-09T21:06:37.391440Z"}], "thread_id": "Thread-6", "execution_time": 0.02584099769592285, "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": "2023-11-09T21:06:37.382176Z", "completed_at": "2023-11-09T21:06:37.395145Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.403155Z", "completed_at": "2023-11-09T21:06:37.403158Z"}], "thread_id": "Thread-4", "execution_time": 0.02663397789001465, "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": "2023-11-09T21:06:37.385207Z", "completed_at": "2023-11-09T21:06:37.395835Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.403474Z", "completed_at": "2023-11-09T21:06:37.403478Z"}], "thread_id": "Thread-5", "execution_time": 0.026456117630004883, "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": "2023-11-09T21:06:37.388815Z", "completed_at": "2023-11-09T21:06:37.396595Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.404331Z", "completed_at": "2023-11-09T21:06:37.404335Z"}], "thread_id": "Thread-7", "execution_time": 0.026247739791870117, "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": "2023-11-09T21:06:37.391705Z", "completed_at": "2023-11-09T21:06:37.402467Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.405892Z", "completed_at": "2023-11-09T21:06:37.405895Z"}], "thread_id": "Thread-3", "execution_time": 0.026792049407958984, "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": "2023-11-09T21:06:37.399675Z", "completed_at": "2023-11-09T21:06:37.404557Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.411030Z", "completed_at": "2023-11-09T21:06:37.411034Z"}], "thread_id": "Thread-1", "execution_time": 0.02448415756225586, "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": "2023-11-09T21:06:37.397055Z", "completed_at": "2023-11-09T21:06:37.405665Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.411931Z", "completed_at": "2023-11-09T21:06:37.411935Z"}], "thread_id": "Thread-2", "execution_time": 0.025716066360473633, "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": "2023-11-09T21:06:37.408051Z", "completed_at": "2023-11-09T21:06:37.414441Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.428105Z", "completed_at": "2023-11-09T21:06:37.428111Z"}], "thread_id": "Thread-6", "execution_time": 0.02553415298461914, "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": "2023-11-09T21:06:37.415110Z", "completed_at": "2023-11-09T21:06:37.428341Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.436351Z", "completed_at": "2023-11-09T21:06:37.436355Z"}], "thread_id": "Thread-4", "execution_time": 0.026629924774169922, "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": "2023-11-09T21:06:37.417773Z", "completed_at": "2023-11-09T21:06:37.428591Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.436596Z", "completed_at": "2023-11-09T21:06:37.436599Z"}], "thread_id": "Thread-5", "execution_time": 0.026777267456054688, "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": "2023-11-09T21:06:37.420962Z", "completed_at": "2023-11-09T21:06:37.429800Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.437464Z", "completed_at": "2023-11-09T21:06:37.437467Z"}], "thread_id": "Thread-7", "execution_time": 0.027232885360717773, "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": "2023-11-09T21:06:37.425187Z", "completed_at": "2023-11-09T21:06:37.430433Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.438668Z", "completed_at": "2023-11-09T21:06:37.438671Z"}], "thread_id": "Thread-3", "execution_time": 0.02646017074584961, "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": "2023-11-09T21:06:37.433260Z", "completed_at": "2023-11-09T21:06:37.438897Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.445093Z", "completed_at": "2023-11-09T21:06:37.445096Z"}], "thread_id": "Thread-2", "execution_time": 0.02246403694152832, "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": "2023-11-09T21:06:37.430662Z", "completed_at": "2023-11-09T21:06:37.439110Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.445328Z", "completed_at": "2023-11-09T21:06:37.445330Z"}], "thread_id": "Thread-1", "execution_time": 0.02333807945251465, "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": "2023-11-09T21:06:36.576189Z", "completed_at": "2023-11-09T21:06:37.348225Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.361949Z", "completed_at": "2023-11-09T21:06:37.361953Z"}], "thread_id": "Thread-8", "execution_time": 0.8794100284576416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.441257Z", "completed_at": "2023-11-09T21:06:37.446892Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.460910Z", "completed_at": "2023-11-09T21:06:37.460915Z"}], "thread_id": "Thread-6", "execution_time": 0.02586078643798828, "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": "2023-11-09T21:06:37.448206Z", "completed_at": "2023-11-09T21:06:37.461463Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.465679Z", "completed_at": "2023-11-09T21:06:37.465683Z"}], "thread_id": "Thread-4", "execution_time": 0.031543731689453125, "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": "2023-11-09T21:06:37.451752Z", "completed_at": "2023-11-09T21:06:37.461682Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.465912Z", "completed_at": "2023-11-09T21:06:37.465915Z"}], "thread_id": "Thread-5", "execution_time": 0.03166604042053223, "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": "2023-11-09T21:06:37.458395Z", "completed_at": "2023-11-09T21:06:37.463287Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.471625Z", "completed_at": "2023-11-09T21:06:37.471629Z"}], "thread_id": "Thread-3", "execution_time": 0.030567169189453125, "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": "2023-11-09T21:06:37.455605Z", "completed_at": "2023-11-09T21:06:37.463846Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.475322Z", "completed_at": "2023-11-09T21:06:37.475326Z"}], "thread_id": "Thread-7", "execution_time": 0.03190493583679199, "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": "2023-11-09T21:06:37.466140Z", "completed_at": "2023-11-09T21:06:37.477906Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.484178Z", "completed_at": "2023-11-09T21:06:37.484182Z"}], "thread_id": "Thread-2", "execution_time": 0.024176836013793945, "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": "2023-11-09T21:06:37.468784Z", "completed_at": "2023-11-09T21:06:37.478370Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.484874Z", "completed_at": "2023-11-09T21:06:37.484878Z"}], "thread_id": "Thread-1", "execution_time": 0.02854609489440918, "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": "2023-11-09T21:06:37.471875Z", "completed_at": "2023-11-09T21:06:37.478900Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.485306Z", "completed_at": "2023-11-09T21:06:37.485308Z"}], "thread_id": "Thread-8", "execution_time": 0.03302192687988281, "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": "2023-11-09T21:06:37.479116Z", "completed_at": "2023-11-09T21:06:37.484653Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.503128Z", "completed_at": "2023-11-09T21:06:37.503133Z"}], "thread_id": "Thread-6", "execution_time": 0.034027814865112305, "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": "2023-11-09T21:06:37.486341Z", "completed_at": "2023-11-09T21:06:37.503682Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.507850Z", "completed_at": "2023-11-09T21:06:37.507853Z"}], "thread_id": "Thread-4", "execution_time": 0.0327301025390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__tran_and_reporting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.491136Z", "completed_at": "2023-11-09T21:06:37.504326Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.508269Z", "completed_at": "2023-11-09T21:06:37.508272Z"}], "thread_id": "Thread-5", "execution_time": 0.03520822525024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__acctxperiod_exchange_rate_map"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.496847Z", "completed_at": "2023-11-09T21:06:37.504896Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.511463Z", "completed_at": "2023-11-09T21:06:37.511467Z"}], "thread_id": "Thread-3", "execution_time": 0.03513002395629883, "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": "2023-11-09T21:06:37.499515Z", "completed_at": "2023-11-09T21:06:37.505574Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.512069Z", "completed_at": "2023-11-09T21:06:37.512072Z"}], "thread_id": "Thread-7", "execution_time": 0.03544497489929199, "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": "2023-11-09T21:06:37.508501Z", "completed_at": "2023-11-09T21:06:37.519628Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.526085Z", "completed_at": "2023-11-09T21:06:37.526089Z"}], "thread_id": "Thread-2", "execution_time": 0.02354574203491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__tran_lines_w_accounting_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.512313Z", "completed_at": "2023-11-09T21:06:37.520208Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.526747Z", "completed_at": "2023-11-09T21:06:37.526751Z"}], "thread_id": "Thread-1", "execution_time": 0.026435136795043945, "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": "2023-11-09T21:06:37.515405Z", "completed_at": "2023-11-09T21:06:37.523575Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.527389Z", "completed_at": "2023-11-09T21:06:37.527392Z"}], "thread_id": "Thread-8", "execution_time": 0.031829118728637695, "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": "2023-11-09T21:06:37.520934Z", "completed_at": "2023-11-09T21:06:37.526520Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.541351Z", "completed_at": "2023-11-09T21:06:37.541356Z"}], "thread_id": "Thread-6", "execution_time": 0.03206586837768555, "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": "2023-11-09T21:06:37.528390Z", "completed_at": "2023-11-09T21:06:37.542236Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.546344Z", "completed_at": "2023-11-09T21:06:37.546348Z"}], "thread_id": "Thread-4", "execution_time": 0.035347938537597656, "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": "2023-11-09T21:06:37.535082Z", "completed_at": "2023-11-09T21:06:37.542538Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.546577Z", "completed_at": "2023-11-09T21:06:37.546580Z"}], "thread_id": "Thread-3", "execution_time": 0.0349421501159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__transaction_lines_w_accounting_period"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.532534Z", "completed_at": "2023-11-09T21:06:37.542784Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.546811Z", "completed_at": "2023-11-09T21:06:37.546813Z"}], "thread_id": "Thread-5", "execution_time": 0.035722970962524414, "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": "2023-11-09T21:06:37.538444Z", "completed_at": "2023-11-09T21:06:37.543400Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.549923Z", "completed_at": "2023-11-09T21:06:37.549929Z"}], "thread_id": "Thread-7", "execution_time": 0.03534197807312012, "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": "2023-11-09T21:06:37.550559Z", "completed_at": "2023-11-09T21:06:37.562136Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.568609Z", "completed_at": "2023-11-09T21:06:37.568614Z"}], "thread_id": "Thread-1", "execution_time": 0.028874874114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__accountxperiod_exchange_rate_map"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.547037Z", "completed_at": "2023-11-09T21:06:37.562363Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.568882Z", "completed_at": "2023-11-09T21:06:37.568885Z"}], "thread_id": "Thread-2", "execution_time": 0.030375957489013672, "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": "2023-11-09T21:06:37.554887Z", "completed_at": "2023-11-09T21:06:37.563306Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.569941Z", "completed_at": "2023-11-09T21:06:37.569944Z"}], "thread_id": "Thread-8", "execution_time": 0.03996610641479492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__transaction_and_reporting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.563540Z", "completed_at": "2023-11-09T21:06:37.569317Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.584893Z", "completed_at": "2023-11-09T21:06:37.584898Z"}], "thread_id": "Thread-6", "execution_time": 0.03635811805725098, "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": "2023-11-09T21:06:37.570172Z", "completed_at": "2023-11-09T21:06:37.585302Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.588259Z", "completed_at": "2023-11-09T21:06:37.588262Z"}], "thread_id": "Thread-4", "execution_time": 0.02317500114440918, "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": "2023-11-09T21:06:37.573689Z", "completed_at": "2023-11-09T21:06:37.585586Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.588500Z", "completed_at": "2023-11-09T21:06:37.588503Z"}], "thread_id": "Thread-3", "execution_time": 0.022809267044067383, "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": "2023-11-09T21:06:37.579067Z", "completed_at": "2023-11-09T21:06:37.585933Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.588732Z", "completed_at": "2023-11-09T21:06:37.588735Z"}], "thread_id": "Thread-7", "execution_time": 0.022581100463867188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite2__tran_with_converted_amounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.576555Z", "completed_at": "2023-11-09T21:06:37.586169Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.588973Z", "completed_at": "2023-11-09T21:06:37.588976Z"}], "thread_id": "Thread-5", "execution_time": 0.023333072662353516, "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": "2023-11-09T21:06:37.591118Z", "completed_at": "2023-11-09T21:06:37.596394Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.632734Z", "completed_at": "2023-11-09T21:06:37.632740Z"}], "thread_id": "Thread-1", "execution_time": 0.045426130294799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.int_netsuite__transactions_with_converted_amounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.615826Z", "completed_at": "2023-11-09T21:06:37.640860Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.651822Z", "completed_at": "2023-11-09T21:06:37.651828Z"}], "thread_id": "Thread-6", "execution_time": 0.05737709999084473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite2__transaction_details"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.597034Z", "completed_at": "2023-11-09T21:06:37.642433Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.652547Z", "completed_at": "2023-11-09T21:06:37.652550Z"}], "thread_id": "Thread-8", "execution_time": 0.06967616081237793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite2__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.609984Z", "completed_at": "2023-11-09T21:06:37.642672Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.652800Z", "completed_at": "2023-11-09T21:06:37.652804Z"}], "thread_id": "Thread-2", "execution_time": 0.06977105140686035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite2__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.634577Z", "completed_at": "2023-11-09T21:06:37.652290Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.666555Z", "completed_at": "2023-11-09T21:06:37.666559Z"}], "thread_id": "Thread-3", "execution_time": 0.035096168518066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite__balance_sheet"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.643456Z", "completed_at": "2023-11-09T21:06:37.653534Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.667460Z", "completed_at": "2023-11-09T21:06:37.667464Z"}], "thread_id": "Thread-7", "execution_time": 0.029713869094848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite__income_statement"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.653750Z", "completed_at": "2023-11-09T21:06:37.667740Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.672200Z", "completed_at": "2023-11-09T21:06:37.672204Z"}], "thread_id": "Thread-5", "execution_time": 0.043640851974487305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite.netsuite__transaction_details"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.676010Z", "completed_at": "2023-11-09T21:06:37.687554Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.696854Z", "completed_at": "2023-11-09T21:06:37.696859Z"}], "thread_id": "Thread-4", "execution_time": 0.030354976654052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_id.e9ee05db79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.678532Z", "completed_at": "2023-11-09T21:06:37.687838Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.697103Z", "completed_at": "2023-11-09T21:06:37.697106Z"}], "thread_id": "Thread-6", "execution_time": 0.030476093292236328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_line_id.12a67b5f36"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.672473Z", "completed_at": "2023-11-09T21:06:37.688121Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.697364Z", "completed_at": "2023-11-09T21:06:37.697367Z"}], "thread_id": "Thread-1", "execution_time": 0.03182077407836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__transaction_details_transaction_details_id.a24a6eb6c0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.683821Z", "completed_at": "2023-11-09T21:06:37.688909Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.698036Z", "completed_at": "2023-11-09T21:06:37.698039Z"}], "thread_id": "Thread-2", "execution_time": 0.033236026763916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_balance_sheet_id.0e299c6c01"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.681380Z", "completed_at": "2023-11-09T21:06:37.692629Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.698278Z", "completed_at": "2023-11-09T21:06:37.698281Z"}], "thread_id": "Thread-8", "execution_time": 0.034011125564575195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.unique_netsuite2__transaction_details_transaction_details_id.cb70f22d04"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.689252Z", "completed_at": "2023-11-09T21:06:37.697598Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.704675Z", "completed_at": "2023-11-09T21:06:37.704679Z"}], "thread_id": "Thread-3", "execution_time": 0.02600884437561035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_id.4e0a408da1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.693501Z", "completed_at": "2023-11-09T21:06:37.699397Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.706128Z", "completed_at": "2023-11-09T21:06:37.706132Z"}], "thread_id": "Thread-7", "execution_time": 0.022263050079345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__balance_sheet_transaction_line_id.dd5f702ec9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.700289Z", "completed_at": "2023-11-09T21:06:37.706377Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.715289Z", "completed_at": "2023-11-09T21:06:37.715293Z"}], "thread_id": "Thread-5", "execution_time": 0.028888702392578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.unique_netsuite2__balance_sheet_balance_sheet_id.8bb14ebf4a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.709829Z", "completed_at": "2023-11-09T21:06:37.725226Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.733453Z", "completed_at": "2023-11-09T21:06:37.733457Z"}], "thread_id": "Thread-4", "execution_time": 0.030130863189697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__income_statement_income_statement_id.4c1a7c959e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.712524Z", "completed_at": "2023-11-09T21:06:37.725439Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.733699Z", "completed_at": "2023-11-09T21:06:37.733702Z"}], "thread_id": "Thread-6", "execution_time": 0.03023695945739746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_id.0ecd59a9ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.715532Z", "completed_at": "2023-11-09T21:06:37.726253Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.734209Z", "completed_at": "2023-11-09T21:06:37.734213Z"}], "thread_id": "Thread-1", "execution_time": 0.03011798858642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite2__income_statement_transaction_line_id.8fdd5b1706"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.718458Z", "completed_at": "2023-11-09T21:06:37.726743Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.735177Z", "completed_at": "2023-11-09T21:06:37.735180Z"}], "thread_id": "Thread-2", "execution_time": 0.033030033111572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.unique_netsuite2__income_statement_income_statement_id.20a530fc68"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.721710Z", "completed_at": "2023-11-09T21:06:37.729936Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.736295Z", "completed_at": "2023-11-09T21:06:37.736299Z"}], "thread_id": "Thread-8", "execution_time": 0.03365588188171387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__balance_sheet_transaction_line_id__transaction_id__accounting_period_id__account_name.7d7c0ea1da"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.730192Z", "completed_at": "2023-11-09T21:06:37.734721Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.741921Z", "completed_at": "2023-11-09T21:06:37.741924Z"}], "thread_id": "Thread-7", "execution_time": 0.019845962524414062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_line_id.2467dc5a32"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.727386Z", "completed_at": "2023-11-09T21:06:37.734951Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.742172Z", "completed_at": "2023-11-09T21:06:37.742174Z"}], "thread_id": "Thread-3", "execution_time": 0.026621103286743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__balance_sheet_transaction_id.bb54ae3b9e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.736993Z", "completed_at": "2023-11-09T21:06:37.743325Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.783144Z", "completed_at": "2023-11-09T21:06:37.783151Z"}], "thread_id": "Thread-5", "execution_time": 0.06437301635742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__income_statement_transaction_line_id__transaction_id__accounting_period_id__account_name.8ee630c641"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.750439Z", "completed_at": "2023-11-09T21:06:37.800460Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.805533Z", "completed_at": "2023-11-09T21:06:37.805537Z"}], "thread_id": "Thread-6", "execution_time": 0.06418275833129883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_line_id.00136bcf80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.746988Z", "completed_at": "2023-11-09T21:06:37.800681Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.805791Z", "completed_at": "2023-11-09T21:06:37.805794Z"}], "thread_id": "Thread-4", "execution_time": 0.0649881362915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__income_statement_transaction_id.12be020c7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.794406Z", "completed_at": "2023-11-09T21:06:37.801130Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.806035Z", "completed_at": "2023-11-09T21:06:37.806038Z"}], "thread_id": "Thread-2", "execution_time": 0.06309986114501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.dbt_utils_unique_combination_of_columns_netsuite__transaction_details_transaction_line_id__transaction_id.5613fa3400"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.783607Z", "completed_at": "2023-11-09T21:06:37.801420Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.806501Z", "completed_at": "2023-11-09T21:06:37.806504Z"}], "thread_id": "Thread-1", "execution_time": 0.06496095657348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.accepted_values_netsuite__transaction_details_account_type_name__Accounts_Receivable__Bank__Deferred_Expense__Fixed_Asset__Other_Asset__Other_Current_Asset__Unbilled_Receivable__Prepaid_Expense__Cost_of_Goods_Sold__Expense__Other_Expense__Income__Other_Income__Accounts_Payable__Credit_Card__Deferred_Revenue__Long_Term_Liability__Other_Current_Liability__Equity__Retained_Earnings__Net_Income__Non_Posting__Statistical.fd03652096"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.797642Z", "completed_at": "2023-11-09T21:06:37.804209Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.806784Z", "completed_at": "2023-11-09T21:06:37.806786Z"}], "thread_id": "Thread-8", "execution_time": 0.06332182884216309, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_id.a65a8e2f58"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-11-09T21:06:37.801709Z", "completed_at": "2023-11-09T21:06:37.806270Z"}, {"name": "execute", "started_at": "2023-11-09T21:06:37.809681Z", "completed_at": "2023-11-09T21:06:37.809684Z"}], "thread_id": "Thread-7", "execution_time": 0.020273685455322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite.not_null_netsuite__transaction_details_transaction_line_id.1662f317e3"}], "elapsed_time": 7.455200910568237, "args": {"partial_parse": true, "project_dir": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests", "empty_catalog": false, "which": "generate", "compile": true, "cache_selected_only": false, "quiet": false, "profiles_dir": "/Users/catherinefritz/.dbt", "send_anonymous_usage_stats": true, "log_format": "default", "use_colors": true, "log_path": "/Users/catherinefritz/Documents/dbt_packages/netsuite/dbt_netsuite/integration_tests/logs", "exclude": [], "version_check": true, "log_level_file": "debug", "invocation_command": "dbt docs generate", "use_colors_file": true, "macro_debugging": false, "strict_mode": false, "indirect_selection": "eager", "log_level": "info", "write_json": true, "enable_legacy_logger": false, "populate_cache": true, "defer": false, "print": true, "vars": {}, "warn_error_options": {"include": [], "exclude": []}, "printer_width": 80, "introspect": true, "static_parser": true, "partial_parse_file_diff": true, "log_file_max_bytes": 10485760, "select": [], "log_format_file": "debug", "favor_state": false}} \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index ffb544ca..36f400c7 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'netsuite_integration_tests' -version: '0.11.0' +version: '0.12.0' profile: 'integration_tests' config-version: 2 models: @@ -7,6 +7,11 @@ models: vars: netsuite_schema: netsuite_integration_tests_5 netsuite_data_model_override: netsuite + + # Enable below when generating docs + # netsuite2__multibook_accounting_enabled: true + # netsuite2__using_to_subsidiary: true + netsuite_source: # Netsuite Seed Data netsuite_accounting_books_identifier: "netsuite_accounting_books_data" diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index b7702d6f..87ae0f9a 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -4,6 +4,4 @@ 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 - -oscrypto @ git+https://github.com/wbond/oscrypto.git@d5f3437 \ No newline at end of file +dbt-databricks>=1.3.0,<2.0.0 \ No newline at end of file diff --git a/models/netsuite2.yml b/models/netsuite2.yml index 7c8a0493..124760f8 100644 --- a/models/netsuite2.yml +++ b/models/netsuite2.yml @@ -52,14 +52,6 @@ models: either Retained Earnings or Net Income. The Cumulative Translation Adjustment total, which in most cases does not have transactions associated with it, is calculated manually in the second part of the query. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - transaction_line_id - - transaction_id - - accounting_period_id - - account_name - - account_id columns: - name: transaction_id description: Netsuite internal transaction ID. @@ -95,19 +87,31 @@ models: description: Transaction amount, converted into the primary subsidiary's default currency. - name: balance_sheet_sort_helper description: Helper column for sorting balance sheet records. + - name: subsidiary_id + description: "{{ doc('subsidiary_id') }}" + - name: subsidiary_name + description: Name of the subsidiary. + - name: accounting_book_id + description: The unique identifier of the accounting book. + - name: accounting_book_name + description: The name of the accounting book. + - name: to_subsidiary_id + description: The subsidiary id which the consolidated exchange rate is for. + - name: to_subsidiary_name + description: The subsidiary name which the consolidated exchange rate is for. + - name: to_subsidiary_currency_symbol + description: Currency symbol for the consolidated exchange rate. + - name: balance_sheet_id + description: Surrogate key hashed on `transaction_line_id`, `transaction_id`, `accounting_period_id`, `account_name`, and `account_id`. Adds `to_subsidiary_id` if using subsidiaries and `accounting_book_id` if using multibook accounting. + tests: + - unique + - not_null - name: netsuite2__income_statement description: > The income statement query uses the transactions_with_converted_amount transformation to recreate all lines necessary for the income statement. It also joins in class, department and location information for enhanced reporting. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - transaction_line_id - - transaction_id - - accounting_period_id - - account_name columns: - name: transaction_id description: Netsuite internal transaction ID. @@ -157,6 +161,22 @@ models: description: The full name of the subsidiary. - name: subsidiary_name description: Name of the subsidiary. + - name: accounting_book_id + description: The unique identifier of the accounting book. + - name: accounting_book_name + description: The name of the accounting book. + - name: to_subsidiary_id + description: The subsidiary id which the consolidated exchange rate is for. + - name: to_subsidiary_name + description: The subsidiary name which the consolidated exchange rate is for. + - name: to_subsidiary_currency_symbol + description: Currency symbol for the consolidated exchange rate. + - name: income_statement_id + description: Surrogate key hashed on `transaction_line_id`, `transaction_id`, `accounting_period_id`, and `account_name`. Adds `to_subsidiary_id` if using subsidiaries and `accounting_book_id` if using multibook accounting. + tests: + - unique + - not_null + - name: netsuite2__transaction_details description: > @@ -164,11 +184,6 @@ models: other tables to add more detail to those line items. For all transactions, you are able to see the associated accounting period, account and subsidiary. Where applicable, you can also see information about the customer, location, item, vendor, and department. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - transaction_line_id - - transaction_id columns: - name: transaction_line_id description: Netsuite internal transaction line ID. @@ -194,6 +209,8 @@ models: description: Boolean field, indicating whether or not the transaction is an intercompany transaction or an advanced intercompany transaction. - name: accounting_period_ending description: End date of the accounting period. + - name: accounting_period_id + description: The unique identifier of the accounting period. - name: accounting_period_name description: Name of the accounting period. - name: is_accounting_period_adjustment @@ -266,7 +283,24 @@ models: description: Name of the department. - name: subsidiary_name description: Name of the subsidiary. + - name: subsidiary_id + description: The unique identifier of the subsidiary. - name: converted_amount description: Transaction amount, converted into the primary subsidiary's default currency. - name: transaction_amount - description: Total amount of the transaction line. \ No newline at end of file + description: Total amount of the transaction line. + - name: accounting_book_id + description: The unique identifier of the accounting book. + - name: accounting_book_name + description: The name of the accounting book. + - name: to_subsidiary_id + description: The subsidiary id which the consolidated exchange rate is for. + - name: to_subsidiary_name + description: The subsidiary name which the consolidated exchange rate is for. + - name: to_subsidiary_currency_symbol + description: Currency symbol for the consolidated exchange rate. + - name: transaction_details_id + description: Surrogate key hashed on `transaction_line_id` and `transaction_id`. Adds `to_subsidiary_id` if using subsidiaries and `accounting_book_id` if using multibook accounting. + tests: + - unique + - not_null \ No newline at end of file diff --git a/models/netsuite2/intermediate/base/int_netsuite2__consolidated_exchange_rates.sql b/models/netsuite2/intermediate/base/int_netsuite2__consolidated_exchange_rates.sql deleted file mode 100644 index e69de29b..00000000 diff --git a/models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql b/models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql index f4d0a1eb..3c709d38 100644 --- a/models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql +++ b/models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql @@ -12,11 +12,48 @@ transaction_accounting_lines as ( from {{ var('netsuite2_transaction_accounting_lines') }} ), +{% if var('netsuite2__multibook_accounting_enabled', false) %} +accounting_books as ( + + select * + from {{ var('netsuite2_accounting_books') }} +), +{% endif %} + joined as ( select transaction_lines.*, transaction_accounting_lines.account_id, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + transaction_accounting_lines.accounting_book_id, + accounting_books.accounting_book_name, + {% endif %} + + transaction_accounting_lines.amount, + transaction_accounting_lines.credit_amount, + transaction_accounting_lines.debit_amount, + transaction_accounting_lines.paid_amount, + transaction_accounting_lines.unpaid_amount, + transaction_accounting_lines.is_posting + + from transaction_lines + left join transaction_accounting_lines + on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id + and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + left join accounting_books + on accounting_books.accounting_book_id = transaction_accounting_lines.accounting_book_id + + union all + + select + transaction_lines.*, + transaction_accounting_lines.account_id, + accounting_books.accounting_book_id, + accounting_books.accounting_book_name, transaction_accounting_lines.amount, transaction_accounting_lines.credit_amount, transaction_accounting_lines.debit_amount, @@ -28,6 +65,11 @@ joined as ( left join transaction_accounting_lines on transaction_lines.transaction_line_id = transaction_accounting_lines.transaction_line_id and transaction_lines.transaction_id = transaction_accounting_lines.transaction_id + left join accounting_books + on accounting_books.base_book_id = transaction_accounting_lines.accounting_book_id + where accounting_books.base_book_id is not null + {% endif %} + ) select * diff --git a/models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql b/models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql index e3fa9d49..723dff7d 100644 --- a/models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql +++ b/models/netsuite2/intermediate/int_netsuite2__acctxperiod_exchange_rate_map.sql @@ -5,7 +5,7 @@ with accounts as ( from {{ ref('int_netsuite2__accounts') }} ), -{% if var('netsuite2__multibook_accounting_enabled', true) %} +{% if var('netsuite2__multibook_accounting_enabled', false) %} accounting_books as ( select * from {{ var('netsuite2_accounting_books') }} @@ -22,27 +22,51 @@ consolidated_exchange_rates as ( from {{ var('netsuite2_consolidated_exchange_rates') }} ), +currencies as ( + select * + from {{ var('netsuite2_currencies') }} +), + period_exchange_rate_map as ( -- exchange rates used, by accounting period, to convert to parent subsidiary select consolidated_exchange_rates.accounting_period_id, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + consolidated_exchange_rates.accounting_book_id, + {% endif %} + consolidated_exchange_rates.average_rate, consolidated_exchange_rates.current_rate, consolidated_exchange_rates.historical_rate, consolidated_exchange_rates.from_subsidiary_id, - consolidated_exchange_rates.to_subsidiary_id + consolidated_exchange_rates.to_subsidiary_id, + to_subsidiaries.name as to_subsidiary_name, + currencies.symbol as to_subsidiary_currency_symbol from consolidated_exchange_rates + + left join subsidiaries as to_subsidiaries + on consolidated_exchange_rates.to_subsidiary_id = to_subsidiaries.subsidiary_id + left join currencies + on currencies.currency_id = to_subsidiaries.currency_id + + {% if not var('netsuite2__using_to_subsidiary', false) %} where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constraint - only the primary subsidiary has no parent - {% if var('netsuite2__multibook_accounting_enabled', true) %} - and consolidated_exchange_rates.accounting_book_id in (select accounting_book_id from accounting_books where is_primary) {% endif %} ), accountxperiod_exchange_rate_map as ( -- account table with exchange rate details by accounting period select period_exchange_rate_map.accounting_period_id, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + period_exchange_rate_map.accounting_book_id, + {% endif %} + period_exchange_rate_map.from_subsidiary_id, period_exchange_rate_map.to_subsidiary_id, + period_exchange_rate_map.to_subsidiary_name, + period_exchange_rate_map.to_subsidiary_currency_symbol, accounts.account_id, case when lower(accounts.general_rate_type) = 'historical' then period_exchange_rate_map.historical_rate diff --git a/models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql b/models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql index 1804375b..0fbc134c 100644 --- a/models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql +++ b/models/netsuite2/intermediate/int_netsuite2__tran_lines_w_accounting_period.sql @@ -16,6 +16,12 @@ transaction_lines_w_accounting_period as ( -- transaction line totals, by accoun transaction_lines.transaction_line_id, transaction_lines.subsidiary_id, transaction_lines.account_id, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + transaction_lines.accounting_book_id, + transaction_lines.accounting_book_name, + {% endif %} + transactions.accounting_period_id as transaction_accounting_period_id, coalesce(transaction_lines.amount, 0) as unconverted_amount from transaction_lines diff --git a/models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql b/models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql index d24c03b3..28e35906 100644 --- a/models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql +++ b/models/netsuite2/intermediate/int_netsuite2__tran_with_converted_amounts.sql @@ -32,6 +32,12 @@ transactions_in_every_calculation_period_w_exchange_rates as ( , exchange_transaction_period.exchange_rate as exchange_rate_transaction_period {% endif %} + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + , exchange_reporting_period.to_subsidiary_id + , exchange_reporting_period.to_subsidiary_name + , exchange_reporting_period.to_subsidiary_currency_symbol + {% endif %} + from transaction_lines_w_accounting_period left join transaction_and_reporting_periods @@ -42,11 +48,23 @@ transactions_in_every_calculation_period_w_exchange_rates as ( on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id and exchange_reporting_period.account_id = transaction_lines_w_accounting_period.account_id and exchange_reporting_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and exchange_reporting_period.accounting_book_id = transaction_lines_w_accounting_period.accounting_book_id + {% endif %} left join accountxperiod_exchange_rate_map as exchange_transaction_period on exchange_transaction_period.accounting_period_id = transaction_and_reporting_periods.accounting_period_id and exchange_transaction_period.account_id = transaction_lines_w_accounting_period.account_id and exchange_transaction_period.from_subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and exchange_transaction_period.accounting_book_id = transaction_lines_w_accounting_period.accounting_book_id + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) %} + and exchange_transaction_period.to_subsidiary_id = exchange_reporting_period.to_subsidiary_id + {% endif %} {% endif %} ), diff --git a/models/netsuite2/netsuite2__balance_sheet.sql b/models/netsuite2/netsuite2__balance_sheet.sql index 58646960..8245254c 100644 --- a/models/netsuite2/netsuite2__balance_sheet.sql +++ b/models/netsuite2/netsuite2__balance_sheet.sql @@ -32,6 +32,20 @@ balance_sheet as ( select transactions_with_converted_amounts.transaction_id, transactions_with_converted_amounts.transaction_line_id, + transactions_with_converted_amounts.subsidiary_id, + subsidiaries.name as subsidiary_name, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + transactions_with_converted_amounts.accounting_book_id, + transactions_with_converted_amounts.accounting_book_name, + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + transactions_with_converted_amounts.to_subsidiary_id, + transactions_with_converted_amounts.to_subsidiary_name, + transactions_with_converted_amounts.to_subsidiary_currency_symbol, + {% endif %} + reporting_accounting_periods.accounting_period_id as accounting_period_id, reporting_accounting_periods.ending_at as accounting_period_ending, reporting_accounting_periods.name as accounting_period_name, @@ -50,6 +64,8 @@ balance_sheet as ( and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'Net Income' when not accounts.is_balancesheet then 'Retained Earnings' + when lower(accounts.special_account_type_id) = 'retearnings' then 'Retained Earnings' + when lower(accounts.special_account_type_id) in ('cta-e', 'cumultransadj') then 'Cumulative Translation Adjustment' else accounts.type_name end as account_type_name, case @@ -57,6 +73,8 @@ balance_sheet as ( and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} and reporting_accounting_periods.fiscal_calendar_id = transaction_accounting_periods.fiscal_calendar_id) then 'net_income' when not accounts.is_balancesheet then 'retained_earnings' + when lower(accounts.special_account_type_id) = 'retearnings' then 'retained_earnings' + when lower(accounts.special_account_type_id) in ('cta-e', 'cumultransadj') then 'cumulative_translation_adjustment' else accounts.account_type_id end as account_type_id, case @@ -94,6 +112,8 @@ balance_sheet as ( when lower(accounts.account_type_id) = 'othcurrliab' then 10 when lower(accounts.account_type_id) = 'longtermliab' then 11 when lower(accounts.account_type_id) = 'deferrevenue' then 12 + when lower(accounts.special_account_type_id) = 'retearnings' then 14 + when lower(accounts.special_account_type_id) in ('cta-e', 'cumultransadj') then 16 when lower(accounts.account_type_id) = 'equity' then 13 when (not accounts.is_balancesheet and {{ dbt.date_trunc('year', 'reporting_accounting_periods.starting_at') }} = {{ dbt.date_trunc('year', 'transaction_accounting_periods.starting_at') }} @@ -116,6 +136,14 @@ balance_sheet as ( left join transaction_details on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and transaction_details.accounting_book_id = transactions_with_converted_amounts.accounting_book_id + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + and transaction_details.to_subsidiary_id = transactions_with_converted_amounts.to_subsidiary_id + {% endif %} {% endif %} @@ -128,6 +156,9 @@ balance_sheet as ( left join accounting_periods as transaction_accounting_periods on transaction_accounting_periods.accounting_period_id = transactions_with_converted_amounts.transaction_accounting_period_id + left join subsidiaries + on subsidiaries.subsidiary_id = transactions_with_converted_amounts.subsidiary_id + where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) and transaction_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) and (accounts.is_balancesheet @@ -138,6 +169,20 @@ balance_sheet as ( select transactions_with_converted_amounts.transaction_id, transactions_with_converted_amounts.transaction_line_id, + transactions_with_converted_amounts.subsidiary_id, + subsidiaries.name as subsidiary_name, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + transactions_with_converted_amounts.accounting_book_id, + transactions_with_converted_amounts.accounting_book_name, + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + transactions_with_converted_amounts.to_subsidiary_id, + transactions_with_converted_amounts.to_subsidiary_name, + transactions_with_converted_amounts.to_subsidiary_currency_symbol, + {% endif %} + reporting_accounting_periods.accounting_period_id as accounting_period_id, reporting_accounting_periods.ending_at as accounting_period_ending, reporting_accounting_periods.name as accounting_period_name, @@ -176,6 +221,14 @@ balance_sheet as ( left join transaction_details on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and transaction_details.accounting_book_id = transactions_with_converted_amounts.accounting_book_id + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + and transaction_details.to_subsidiary_id = transactions_with_converted_amounts.to_subsidiary_id + {% endif %} {% endif %} left join accounts @@ -183,11 +236,26 @@ balance_sheet as ( left join accounting_periods as reporting_accounting_periods on reporting_accounting_periods.accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id - + + left join subsidiaries + on subsidiaries.subsidiary_id = transactions_with_converted_amounts.subsidiary_id + where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) and (accounts.is_balancesheet or transactions_with_converted_amounts.is_income_statement) +), + +surrogate_key as ( + {% set surrogate_key_fields = ['transaction_line_id', 'transaction_id', 'accounting_period_id', 'account_name', 'account_id'] %} + {% do surrogate_key_fields.append('to_subsidiary_id') if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + {% do surrogate_key_fields.append('accounting_book_id') if var('netsuite2__multibook_accounting_enabled', false) %} + + select + *, + {{ dbt_utils.generate_surrogate_key(surrogate_key_fields) }} as balance_sheet_id + + from balance_sheet ) select * -from balance_sheet \ No newline at end of file +from surrogate_key \ No newline at end of file diff --git a/models/netsuite2/netsuite2__income_statement.sql b/models/netsuite2/netsuite2__income_statement.sql index 878efe18..66ef8d13 100644 --- a/models/netsuite2/netsuite2__income_statement.sql +++ b/models/netsuite2/netsuite2__income_statement.sql @@ -52,6 +52,18 @@ income_statement as ( select transactions_with_converted_amounts.transaction_id, transactions_with_converted_amounts.transaction_line_id, + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + transactions_with_converted_amounts.accounting_book_id, + transactions_with_converted_amounts.accounting_book_name, + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + transactions_with_converted_amounts.to_subsidiary_id, + transactions_with_converted_amounts.to_subsidiary_name, + transactions_with_converted_amounts.to_subsidiary_currency_symbol, + {% endif %} + reporting_accounting_periods.accounting_period_id as accounting_period_id, reporting_accounting_periods.ending_at as accounting_period_ending, reporting_accounting_periods.name as accounting_period_name, @@ -105,6 +117,10 @@ income_statement as ( on transaction_lines.transaction_line_id = transactions_with_converted_amounts.transaction_line_id and transaction_lines.transaction_id = transactions_with_converted_amounts.transaction_id + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and transaction_lines.accounting_book_id = transactions_with_converted_amounts.accounting_book_id + {% endif %} + left join departments on departments.department_id = transaction_lines.department_id @@ -128,12 +144,31 @@ income_statement as ( join transaction_details on transaction_details.transaction_id = transactions_with_converted_amounts.transaction_id and transaction_details.transaction_line_id = transactions_with_converted_amounts.transaction_line_id + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and transaction_details.accounting_book_id = transactions_with_converted_amounts.accounting_book_id + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + and transaction_details.to_subsidiary_id = transactions_with_converted_amounts.to_subsidiary_id + {% endif %} {% endif %} where reporting_accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null) and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id and transactions_with_converted_amounts.is_income_statement +), + +surrogate_key as ( + {% set surrogate_key_fields = ['transaction_line_id', 'transaction_id', 'accounting_period_id', 'account_name'] %} + {% do surrogate_key_fields.append('to_subsidiary_id') if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + {% do surrogate_key_fields.append('accounting_book_id') if var('netsuite2__multibook_accounting_enabled', false) %} + + select + *, + {{ dbt_utils.generate_surrogate_key(surrogate_key_fields) }} as income_statement_id + + from income_statement ) select * -from income_statement +from surrogate_key diff --git a/models/netsuite2/netsuite2__transaction_details.sql b/models/netsuite2/netsuite2__transaction_details.sql index fae18574..4e836b24 100644 --- a/models/netsuite2/netsuite2__transaction_details.sql +++ b/models/netsuite2/netsuite2__transaction_details.sql @@ -79,6 +79,18 @@ entities as ( transaction_details as ( select + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + transaction_lines.accounting_book_id, + transaction_lines.accounting_book_name, + {% endif %} + + {% if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + transactions_with_converted_amounts.to_subsidiary_id, + transactions_with_converted_amounts.to_subsidiary_name, + transactions_with_converted_amounts.to_subsidiary_currency_symbol, + {% endif %} + transaction_lines.transaction_line_id, transaction_lines.memo as transaction_memo, not transaction_lines.is_posting as is_transaction_non_posting, @@ -97,6 +109,7 @@ transaction_details as ( accounting_periods.ending_at as accounting_period_ending, accounting_periods.name as accounting_period_name, + accounting_periods.accounting_period_id as accounting_period_id, accounting_periods.is_adjustment as is_accounting_period_adjustment, accounting_periods.is_closed as is_accounting_period_closed, accounts.name as account_name, @@ -141,6 +154,7 @@ transaction_details as ( --The below script allows for departments table pass through columns. {{ fivetran_utils.persist_pass_through_columns('departments_pass_through_columns', identifier='departments') }}, + subsidiaries.subsidiary_id, subsidiaries.name as subsidiary_name, case when lower(accounts.account_type_id) in ('income', 'othincome') then -converted_amount_using_transaction_accounting_period @@ -159,6 +173,10 @@ transaction_details as ( on transactions_with_converted_amounts.transaction_line_id = transaction_lines.transaction_line_id and transactions_with_converted_amounts.transaction_id = transaction_lines.transaction_id and transactions_with_converted_amounts.transaction_accounting_period_id = transactions_with_converted_amounts.reporting_accounting_period_id + + {% if var('netsuite2__multibook_accounting_enabled', false) %} + and transactions_with_converted_amounts.accounting_book_id = transaction_lines.accounting_book_id + {% endif %} left join accounts on accounts.account_id = transaction_lines.account_id @@ -200,7 +218,19 @@ transaction_details as ( where (accounting_periods.fiscal_calendar_id is null or accounting_periods.fiscal_calendar_id = (select fiscal_calendar_id from subsidiaries where parent_id is null)) +), + +surrogate_key as ( + {% set surrogate_key_fields = ['transaction_line_id', 'transaction_id'] %} + {% do surrogate_key_fields.append('to_subsidiary_id') if var('netsuite2__using_to_subsidiary', false) and var('netsuite2__using_exchange_rate', true) %} + {% do surrogate_key_fields.append('accounting_book_id') if var('netsuite2__multibook_accounting_enabled', false) %} + + select + *, + {{ dbt_utils.generate_surrogate_key(surrogate_key_fields) }} as transaction_details_id + + from transaction_details ) select * -from transaction_details \ No newline at end of file +from surrogate_key \ No newline at end of file diff --git a/packages.yml b/packages.yml index c0b14291..5145d883 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,7 @@ packages: - - package: fivetran/netsuite_source - version: [">=0.8.0", "<0.9.0"] +# - package: fivetran/netsuite_source +# version: [">=0.9.0", "<0.10.0"] + +- git: https://github.com/fivetran/dbt_netsuite_source.git + revision: feature/subsidiary-currency + warn-unpinned: false