diff --git a/.github/workflows/check_docs.yml b/.github/workflows/check_docs.yml new file mode 100644 index 0000000..5db0fc8 --- /dev/null +++ b/.github/workflows/check_docs.yml @@ -0,0 +1,35 @@ +name: 'check docs' +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + changed-files: + runs-on: ubuntu-latest + name: test changed-files + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v29.0.4 + with: + files: docs/** + + - name: Check to see if docs folder hasn't changed + if: steps.changed-files.outputs.any_changed == 'false' + run: | + echo "Docs have not been regenerated." + exit 1 + + - name: Check if docs folder has changed + if: steps.changed-files.outputs.any_changed == 'true' + run: | + echo "Docs have been regenerated!" + exit 0 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2710741..04930fd 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ target/ dbt_modules/ logs/ - dbt_packages/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c6c9f8..f25b52d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# dbt_quickbooks_source v0.5.1 +## Features +- Addition of the `credit_card_payment_txn` (enabled/disabled using the `using_credit_card_payment_txn` variable) source as well as the accompanying staging models. This source includes all credit card payment transactions and will be used in downstream General Ledger generation to ensure accurate reporting of all transaction types. ([#29](https://github.com/fivetran/dbt_quickbooks_source/pull/29)) + >**Note**: the `credit_card_payment_txn` source and models are disabled by default. In order to enabled them, you will want to set the `using_credit_card_payment_txn` variable to `true` in your dbt_project.yml. + +## Under the Hood +- A GitHub workflow has been added to ensure the dbt docs are regenerated before each merge to the `main` release branch. # dbt_quickbooks_source v0.5.0 ## 🚨 Breaking Changes 🚨 - It was discovered that IDs from the source tables can sometimes be strings. The previous build of the package interpreted all IDs as integers. To ensure the package operates as intended, the package has been updated to cast all IDs to the string datatype. If you were leveraging the end models in downstream analysis, this change could break your join conditions. Be sure to be aware of any join conditions you may have downstream before upgrading your QuickBooks package. ([#36](https://github.com/fivetran/dbt_quickbooks/pull/36)) ([#25](https://github.com/fivetran/dbt_quickbooks_source/pull/25)) ([#24](https://github.com/fivetran/dbt_quickbooks_source/pull/24)) diff --git a/README.md b/README.md index 429ce40..35fba1d 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ models: ``` ### Disabling models -This package takes into consideration that not every QuickBooks account utilizes the same transactional tables, and allows you to disable the corresponding functionality. By default, most variables' values are assumed to be `true` (with exception of purchase orders). Add variables for only the tables you want to disable or enable respectively: +This package takes into consideration that not every QuickBooks account utilizes the same transactional tables, and allows you to disable the corresponding functionality. By default, most variables' values are assumed to be `true` (with exception of purchase orders and credit card payments). Add variables for only the tables you want to disable or enable respectively: ```yml # dbt_project.yml @@ -79,6 +79,7 @@ vars: using_vendor_credit: false #disable if you don't have vendor credits in QuickBooks using_sales_receipt: false #disable if you don't have sales receipts in QuickBooks using_purchase_order: true #enable if you want to include purchase orders in your staging models + using_credit_card_payment_txn: true #enable if you want to include credit card payment transactions in your staging models ``` ## Contributions diff --git a/dbt_project.yml b/dbt_project.yml index 7342510..c10c830 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -19,6 +19,7 @@ vars: bill: "{{ source('quickbooks','bill') }}" bundle_item: "{{ source('quickbooks','bundle_item') }}" bundle: "{{ source('quickbooks','bundle') }}" + credit_card_payment_txn: "{{ source('quickbooks','credit_card_payment_txn') }}" credit_memo_line: "{{ source('quickbooks','credit_memo_line') }}" credit_memo: "{{ source('quickbooks','credit_memo') }}" customer: "{{ source('quickbooks','customer') }}" diff --git a/docs/catalog.json b/docs/catalog.json index 30e06e9..9cc6c80 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": "0.19.0", "generated_at": "2021-03-11T16:18:36.309559Z", "invocation_id": "fd1112b1-d87b-4c9c-b6d0-769ca5bc7bf3", "env": {}}, "nodes": {"seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_order_linked_txn_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 5, "name": "purchase_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 6, "name": "vendor_credit_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 288.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_linked_txn_data", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_payment_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_payment_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 320.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_order_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "INT64", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "STRING", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "FLOAT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1038.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, "seed.quickbooks_source_integration_tests.bill_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_line_data", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1420.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "credit_memo_line_data", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "FLOAT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 911.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, "seed.quickbooks_source_integration_tests.bundle_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bundle_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "description": {"type": "STRING", "comment": null, "index": 5, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 6, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 7, "name": "name"}, "print_grouped_items": {"type": "BOOL", "comment": null, "index": 8, "name": "print_grouped_items"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 9, "name": "purchase_cost"}, "sync_token": {"type": "INT64", "comment": null, "index": 10, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 11, "name": "taxable"}, "unit_price": {"type": "INT64", "comment": null, "index": 12, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 13, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1304.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_line_bundle_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 5, "name": "amount"}, "class_id": {"type": "INT64", "comment": null, "index": 6, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "discount_amount": {"type": "INT64", "comment": null, "index": 8, "name": "discount_amount"}, "discount_rate": {"type": "INT64", "comment": null, "index": 9, "name": "discount_rate"}, "invoice_line_index": {"type": "INT64", "comment": null, "index": 10, "name": "invoice_line_index"}, "item_id": {"type": "INT64", "comment": null, "index": 11, "name": "item_id"}, "line_num": {"type": "INT64", "comment": null, "index": 12, "name": "line_num"}, "quantity": {"type": "FLOAT64", "comment": null, "index": 13, "name": "quantity"}, "service_date": {"type": "INT64", "comment": null, "index": 14, "name": "service_date"}, "tax_code_id": {"type": "STRING", "comment": null, "index": 15, "name": "tax_code_id"}, "unit_price": {"type": "INT64", "comment": null, "index": 16, "name": "unit_price"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_quantity"}, "sales_item_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_account_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1173.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "refund_receipt_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "check_payment_account_number": {"type": "INT64", "comment": null, "index": 8, "name": "check_payment_account_number"}, "check_payment_bank_name": {"type": "INT64", "comment": null, "index": 9, "name": "check_payment_bank_name"}, "check_payment_check_number": {"type": "INT64", "comment": null, "index": 10, "name": "check_payment_check_number"}, "check_payment_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "check_payment_name_on_account"}, "check_payment_status": {"type": "INT64", "comment": null, "index": 12, "name": "check_payment_status"}, "class_id": {"type": "INT64", "comment": null, "index": 13, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 14, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 22, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 23, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 24, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 25, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 26, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 27, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 28, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 29, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 30, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 31, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 32, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 33, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 34, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 35, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 36, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 37, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 38, "name": "payment_reference_number"}, "payment_type": {"type": "INT64", "comment": null, "index": 39, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 40, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 41, "name": "private_note"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 42, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 43, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 44, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 45, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 46, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 48, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 49, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 212.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "sales_receipt_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 2, "name": "sales_receipt_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1320.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_source_integration_tests.item_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "item_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "asset_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "asset_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "description": {"type": "INT64", "comment": null, "index": 6, "name": "description"}, "expense_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "expense_account_id"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 8, "name": "fully_qualified_name"}, "income_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "income_account_id"}, "inventory_start_date": {"type": "INT64", "comment": null, "index": 10, "name": "inventory_start_date"}, "level": {"type": "INT64", "comment": null, "index": 11, "name": "level"}, "name": {"type": "STRING", "comment": null, "index": 12, "name": "name"}, "parent_item_id": {"type": "INT64", "comment": null, "index": 13, "name": "parent_item_id"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 14, "name": "purchase_cost"}, "purchase_description": {"type": "INT64", "comment": null, "index": 15, "name": "purchase_description"}, "purchase_tax_code_id": {"type": "INT64", "comment": null, "index": 16, "name": "purchase_tax_code_id"}, "purchase_tax_included": {"type": "INT64", "comment": null, "index": 17, "name": "purchase_tax_included"}, "quantity_on_hand": {"type": "INT64", "comment": null, "index": 18, "name": "quantity_on_hand"}, "sales_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_tax_code_id"}, "sales_tax_included": {"type": "INT64", "comment": null, "index": 20, "name": "sales_tax_included"}, "stock_keeping_unit": {"type": "INT64", "comment": null, "index": 21, "name": "stock_keeping_unit"}, "sub_item": {"type": "INT64", "comment": null, "index": 22, "name": "sub_item"}, "sync_token": {"type": "INT64", "comment": null, "index": 23, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 24, "name": "taxable"}, "track_quantity_on_hand": {"type": "BOOL", "comment": null, "index": 25, "name": "track_quantity_on_hand"}, "type": {"type": "STRING", "comment": null, "index": 26, "name": "type"}, "unit_price": {"type": "INT64", "comment": null, "index": 27, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 28, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 507.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, "seed.quickbooks_source_integration_tests.bill_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "DATE", "comment": null, "index": 8, "name": "doc_number"}, "due_date": {"type": "DATE", "comment": null, "index": 9, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 10, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 12, "name": "home_balance"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 14, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_term_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 784.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "vendor_credit_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 2, "name": "vendor_credit_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}, "private_note": {"type": "INT64", "comment": null, "index": 19, "name": "private_note"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 226.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_source_integration_tests.estimate_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "estimate_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "accepted_by": {"type": "INT64", "comment": null, "index": 4, "name": "accepted_by"}, "accepted_date": {"type": "INT64", "comment": null, "index": 5, "name": "accepted_date"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 6, "name": "apply_tax_after_discount"}, "bill_email": {"type": "STRING", "comment": null, "index": 7, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 9, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 12, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 13, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 15, "name": "customer_memo"}, "delivery_type": {"type": "INT64", "comment": null, "index": 16, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 17, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 18, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 19, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 20, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 21, "name": "exchange_rate"}, "expiration_date": {"type": "INT64", "comment": null, "index": 22, "name": "expiration_date"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 23, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 24, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 25, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 26, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 27, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 28, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 29, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 30, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 31, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 32, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 33, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 34, "name": "transaction_date"}, "transaction_status": {"type": "STRING", "comment": null, "index": 35, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 36, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1714.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "refund_receipt_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "refund_id": {"type": "INT64", "comment": null, "index": 2, "name": "refund_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 312.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deposit_line_data", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "deposit_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_account_id"}, "deposit_check_number": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_check_number"}, "deposit_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_class_id"}, "deposit_customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "deposit_customer_id"}, "deposit_payment_method_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_payment_method_id"}, "deposit_tax_applicable_on": {"type": "INT64", "comment": null, "index": 10, "name": "deposit_tax_applicable_on"}, "deposit_tax_code_id": {"type": "INT64", "comment": null, "index": 11, "name": "deposit_tax_code_id"}, "deposit_transaction_type": {"type": "INT64", "comment": null, "index": 12, "name": "deposit_transaction_type"}, "description": {"type": "STRING", "comment": null, "index": 13, "name": "description"}, "detail_type": {"type": "STRING", "comment": null, "index": 14, "name": "detail_type"}, "expense_id": {"type": "INT64", "comment": null, "index": 15, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 16, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 17, "name": "journal_entry_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 18, "name": "payment_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 19, "name": "purchase_id"}, "refund_receipt_id": {"type": "INT64", "comment": null, "index": 20, "name": "refund_receipt_id"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 21, "name": "sales_receipt_id"}, "transfer_id": {"type": "INT64", "comment": null, "index": 22, "name": "transfer_id"}, "bill_id": {"type": "INT64", "comment": null, "index": 23, "name": "bill_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 24, "name": "vendor_credit_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 788.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, "seed.quickbooks_source_integration_tests.purchase_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "credit": {"type": "INT64", "comment": null, "index": 6, "name": "credit"}, "currency_id": {"type": "STRING", "comment": null, "index": 7, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "employee_id": {"type": "INT64", "comment": null, "index": 11, "name": "employee_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 12, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 13, "name": "global_tax_calculation"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 14, "name": "payment_method_id"}, "payment_type": {"type": "STRING", "comment": null, "index": 15, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 16, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 17, "name": "private_note"}, "remit_to_address_id": {"type": "INT64", "comment": null, "index": 18, "name": "remit_to_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 23, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 24, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 25, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 572.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, "seed.quickbooks_source_integration_tests.payment_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "payment_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "payment_id": {"type": "INT64", "comment": null, "index": 2, "name": "payment_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "check_id": {"type": "INT64", "comment": null, "index": 5, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_credit_id"}, "credit_memo_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_memo_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 11, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 12, "name": "journal_entry_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 440.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, "seed.quickbooks_source_integration_tests.address_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "address_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "city": {"type": "STRING", "comment": null, "index": 3, "name": "city"}, "country": {"type": "STRING", "comment": null, "index": 4, "name": "country"}, "country_sub_division_code": {"type": "STRING", "comment": null, "index": 5, "name": "country_sub_division_code"}, "latitude": {"type": "INT64", "comment": null, "index": 6, "name": "latitude"}, "line_1": {"type": "STRING", "comment": null, "index": 7, "name": "line_1"}, "line_2": {"type": "STRING", "comment": null, "index": 8, "name": "line_2"}, "line_3": {"type": "INT64", "comment": null, "index": 9, "name": "line_3"}, "line_4": {"type": "INT64", "comment": null, "index": 10, "name": "line_4"}, "line_5": {"type": "INT64", "comment": null, "index": 11, "name": "line_5"}, "longitude": {"type": "INT64", "comment": null, "index": 12, "name": "longitude"}, "postal_code": {"type": "INT64", "comment": null, "index": 13, "name": "postal_code"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 116.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, "seed.quickbooks_source_integration_tests.vendor_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "vendor_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "alternate_phone": {"type": "INT64", "comment": null, "index": 5, "name": "alternate_phone"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "company_name": {"type": "STRING", "comment": null, "index": 8, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 11, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 12, "name": "email"}, "family_name": {"type": "INT64", "comment": null, "index": 13, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 14, "name": "fax_number"}, "given_name": {"type": "INT64", "comment": null, "index": 15, "name": "given_name"}, "middle_name": {"type": "INT64", "comment": null, "index": 16, "name": "middle_name"}, "mobile_phone": {"type": "INT64", "comment": null, "index": 17, "name": "mobile_phone"}, "other_contacts": {"type": "INT64", "comment": null, "index": 18, "name": "other_contacts"}, "primary_phone": {"type": "INT64", "comment": null, "index": 19, "name": "primary_phone"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 20, "name": "print_on_check_name"}, "suffix": {"type": "INT64", "comment": null, "index": 21, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 22, "name": "sync_token"}, "tax_identifier": {"type": "INT64", "comment": null, "index": 23, "name": "tax_identifier"}, "term_id": {"type": "INT64", "comment": null, "index": 24, "name": "term_id"}, "title": {"type": "INT64", "comment": null, "index": 25, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 26, "name": "updated_at"}, "vendor_1099": {"type": "BOOL", "comment": null, "index": 27, "name": "vendor_1099"}, "web_url": {"type": "INT64", "comment": null, "index": 28, "name": "web_url"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1510.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1420.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, "seed.quickbooks_source_integration_tests.account_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "account_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 4, "name": "account_sub_type"}, "account_type": {"type": "STRING", "comment": null, "index": 5, "name": "account_type"}, "active": {"type": "BOOL", "comment": null, "index": 6, "name": "active"}, "balance": {"type": "INT64", "comment": null, "index": 7, "name": "balance"}, "balance_with_sub_accounts": {"type": "INT64", "comment": null, "index": 8, "name": "balance_with_sub_accounts"}, "classification": {"type": "STRING", "comment": null, "index": 9, "name": "classification"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "description": {"type": "INT64", "comment": null, "index": 12, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 13, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 14, "name": "name"}, "parent_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "parent_account_id"}, "sub_account": {"type": "BOOL", "comment": null, "index": 16, "name": "sub_account"}, "sync_token": {"type": "INT64", "comment": null, "index": 17, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 18, "name": "tax_code_id"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1833.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_linked_txn_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "charge_credit_id": {"type": "INT64", "comment": null, "index": 4, "name": "charge_credit_id"}, "estimate_id": {"type": "INT64", "comment": null, "index": 5, "name": "estimate_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 6, "name": "payment_id"}, "reimburse_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "reimburse_charge_id"}, "statement_charge_id": {"type": "INT64", "comment": null, "index": 8, "name": "statement_charge_id"}, "time_activity_id": {"type": "INT64", "comment": null, "index": 9, "name": "time_activity_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 448.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "journal_entry_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "adjustment": {"type": "BOOL", "comment": null, "index": 4, "name": "adjustment"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "doc_number": {"type": "STRING", "comment": null, "index": 7, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 9, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 10, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 11, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 13, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 14, "name": "total_tax"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1217.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "purchase_order_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "class_id": {"type": "INT64", "comment": null, "index": 4, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "custom_customer_type": {"type": "STRING", "comment": null, "index": 7, "name": "custom_customer_type"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 8, "name": "custom_p_o_number"}, "doc_number": {"type": "INT64", "comment": null, "index": 9, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 10, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 12, "name": "global_tax_calculation"}, "memo": {"type": "STRING", "comment": null, "index": 13, "name": "memo"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 14, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 15, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 17, "name": "shipping_address_id"}, "status": {"type": "STRING", "comment": null, "index": 18, "name": "status"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 23, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 24, "name": "updated_at"}, "vendor_address_id": {"type": "INT64", "comment": null, "index": 25, "name": "vendor_address_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2042.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_payment_line_data", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bill_id": {"type": "INT64", "comment": null, "index": 5, "name": "bill_id"}, "check_id": {"type": "INT64", "comment": null, "index": 6, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_credit_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 11, "name": "journal_entry_id"}, "linked_bill_payment_id": {"type": "INT64", "comment": null, "index": 12, "name": "linked_bill_payment_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 13, "name": "vendor_credit_id"}, "bill_payment_credit_card_id": {"type": "INT64", "comment": null, "index": 14, "name": "bill_payment_credit_card_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, "seed.quickbooks_source_integration_tests.department_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "department_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 5, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "parent_department_id": {"type": "INT64", "comment": null, "index": 7, "name": "parent_department_id"}, "sub_department": {"type": "BOOL", "comment": null, "index": 8, "name": "sub_department"}, "sync_token": {"type": "INT64", "comment": null, "index": 9, "name": "sync_token"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 660.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "vendor_credit_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 8, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 9, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 10, "name": "global_tax_calculation"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 11, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 12, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 13, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 14, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 17, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 190.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "journal_entry_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 2, "name": "journal_entry_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 5, "name": "amount"}, "billable_status": {"type": "INT64", "comment": null, "index": 6, "name": "billable_status"}, "class_id": {"type": "INT64", "comment": null, "index": 7, "name": "class_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "description": {"type": "STRING", "comment": null, "index": 10, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 11, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "description_tax_code_id"}, "employee_id": {"type": "INT64", "comment": null, "index": 13, "name": "employee_id"}, "posting_type": {"type": "STRING", "comment": null, "index": 14, "name": "posting_type"}, "tax_amount": {"type": "INT64", "comment": null, "index": 15, "name": "tax_amount"}, "tax_applicable_on": {"type": "INT64", "comment": null, "index": 16, "name": "tax_applicable_on"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "tax_code_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 18, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 535.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bundle_item_data", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "item_id": {"type": "INT64", "comment": null, "index": 2, "name": "item_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "item_quantity": {"type": "INT64", "comment": null, "index": 4, "name": "item_quantity"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 416.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, "seed.quickbooks_source_integration_tests.bill_payment_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "bill_payment_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "check_bank_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "check_bank_account_id"}, "check_print_status": {"type": "STRING", "comment": null, "index": 5, "name": "check_print_status"}, "created_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "created_at"}, "credit_card_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_account_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "pay_type": {"type": "STRING", "comment": null, "index": 12, "name": "pay_type"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "INT64", "comment": null, "index": 14, "name": "private_note"}, "process_bill_payment": {"type": "INT64", "comment": null, "index": 15, "name": "process_bill_payment"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1130.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "sales_receipt_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 22, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 23, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 24, "name": "customer_memo"}, "delivery_time": {"type": "INT64", "comment": null, "index": 25, "name": "delivery_time"}, "delivery_type": {"type": "INT64", "comment": null, "index": 26, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 27, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 28, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 29, "name": "doc_number"}, "email_status": {"type": "INT64", "comment": null, "index": 30, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 31, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 32, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 33, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 34, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 35, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 36, "name": "payment_reference_number"}, "print_status": {"type": "INT64", "comment": null, "index": 37, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 38, "name": "private_note"}, "ship_date": {"type": "INT64", "comment": null, "index": 39, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 40, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 41, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 42, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 43, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 44, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 45, "name": "tracking_number"}, "transaction_date": {"type": "INT64", "comment": null, "index": 46, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 48, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1060.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, "seed.quickbooks_source_integration_tests.deposit_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "deposit_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "cash_back_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "cash_back_account_id"}, "cash_back_amount": {"type": "INT64", "comment": null, "index": 6, "name": "cash_back_amount"}, "cash_back_memo": {"type": "INT64", "comment": null, "index": 7, "name": "cash_back_memo"}, "created_at": {"type": "DATETIME", "comment": null, "index": 8, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 9, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 10, "name": "department_id"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 12, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 13, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 14, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 15, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 16, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 17, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 18, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 596.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, "seed.quickbooks_source_integration_tests.customer_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "customer_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "alternate_phone_number": {"type": "INT64", "comment": null, "index": 4, "name": "alternate_phone_number"}, "ar_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "ar_account_id"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "balance_with_jobs": {"type": "INT64", "comment": null, "index": 7, "name": "balance_with_jobs"}, "bill_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "bill_address_id"}, "bill_with_parent": {"type": "BOOL", "comment": null, "index": 9, "name": "bill_with_parent"}, "company_name": {"type": "STRING", "comment": null, "index": 10, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 12, "name": "currency_id"}, "default_tax_code_id": {"type": "INT64", "comment": null, "index": 13, "name": "default_tax_code_id"}, "display_name": {"type": "STRING", "comment": null, "index": 14, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 15, "name": "email"}, "family_name": {"type": "STRING", "comment": null, "index": 16, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 17, "name": "fax_number"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 18, "name": "fully_qualified_name"}, "given_name": {"type": "STRING", "comment": null, "index": 19, "name": "given_name"}, "job": {"type": "BOOL", "comment": null, "index": 20, "name": "job"}, "level": {"type": "INT64", "comment": null, "index": 21, "name": "level"}, "middle_name": {"type": "INT64", "comment": null, "index": 22, "name": "middle_name"}, "mobile_number": {"type": "INT64", "comment": null, "index": 23, "name": "mobile_number"}, "notes": {"type": "INT64", "comment": null, "index": 24, "name": "notes"}, "open_balance_date": {"type": "INT64", "comment": null, "index": 25, "name": "open_balance_date"}, "parent_customer_id": {"type": "INT64", "comment": null, "index": 26, "name": "parent_customer_id"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 27, "name": "payment_method_id"}, "phone_number": {"type": "INT64", "comment": null, "index": 28, "name": "phone_number"}, "preferred_delivery_method": {"type": "STRING", "comment": null, "index": 29, "name": "preferred_delivery_method"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 30, "name": "print_on_check_name"}, "resale_number": {"type": "INT64", "comment": null, "index": 31, "name": "resale_number"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 32, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 33, "name": "shipping_address_id"}, "suffix": {"type": "INT64", "comment": null, "index": 34, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 35, "name": "sync_token"}, "tax_exemption_reason_id": {"type": "INT64", "comment": null, "index": 36, "name": "tax_exemption_reason_id"}, "taxable": {"type": "BOOL", "comment": null, "index": 37, "name": "taxable"}, "title": {"type": "INT64", "comment": null, "index": 38, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 39, "name": "updated_at"}, "website": {"type": "INT64", "comment": null, "index": 40, "name": "website"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1001.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_line_data", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "FLOAT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 648.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, "seed.quickbooks_source_integration_tests.transfer_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "transfer_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "from_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "from_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 7, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 8, "name": "sync_token"}, "to_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "to_account_id"}, "transaction_date": {"type": "DATE", "comment": null, "index": 10, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 214.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "estimate_line_data", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 985.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, "seed.quickbooks_source_integration_tests.invoice_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "invoice_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "allow_ipnpayment": {"type": "BOOL", "comment": null, "index": 4, "name": "allow_ipnpayment"}, "allow_online_achpayment": {"type": "BOOL", "comment": null, "index": 5, "name": "allow_online_achpayment"}, "allow_online_credit_card_payment": {"type": "BOOL", "comment": null, "index": 6, "name": "allow_online_credit_card_payment"}, "allow_online_payment": {"type": "BOOL", "comment": null, "index": 7, "name": "allow_online_payment"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 8, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 9, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 10, "name": "billing_address_id"}, "billing_bcc_email": {"type": "STRING", "comment": null, "index": 11, "name": "billing_bcc_email"}, "billing_cc_email": {"type": "INT64", "comment": null, "index": 12, "name": "billing_cc_email"}, "billing_email": {"type": "STRING", "comment": null, "index": 13, "name": "billing_email"}, "class_id": {"type": "INT64", "comment": null, "index": 14, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 15, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 16, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 17, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 18, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 19, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 20, "name": "customer_memo"}, "delivery_time": {"type": "DATETIME", "comment": null, "index": 21, "name": "delivery_time"}, "delivery_type": {"type": "STRING", "comment": null, "index": 22, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 23, "name": "department_id"}, "deposit": {"type": "INT64", "comment": null, "index": 24, "name": "deposit"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 25, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 26, "name": "doc_number"}, "due_date": {"type": "DATETIME", "comment": null, "index": 27, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 28, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 29, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 30, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 31, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 32, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 33, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 34, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 35, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 36, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 37, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 38, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 39, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 40, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 41, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 42, "name": "tracking_number"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 43, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 44, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 45, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1257.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, "seed.quickbooks_source_integration_tests.payment_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "payment_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 5, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 9, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 17, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 18, "name": "customer_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 19, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 20, "name": "exchange_rate"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "private_note": {"type": "STRING", "comment": null, "index": 22, "name": "private_note"}, "process_payment": {"type": "BOOL", "comment": null, "index": 23, "name": "process_payment"}, "receivable_account_id": {"type": "INT64", "comment": null, "index": 24, "name": "receivable_account_id"}, "reference_number": {"type": "INT64", "comment": null, "index": 25, "name": "reference_number"}, "sync_token": {"type": "INT64", "comment": null, "index": 26, "name": "sync_token"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 27, "name": "total_amount"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 28, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 29, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 30, "name": "transaction_status"}, "unapplied_amount": {"type": "INT64", "comment": null, "index": 31, "name": "unapplied_amount"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 32, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1143.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "name": "credit_memo_data", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 11, "name": "custom_p_o_number"}, "customer_id": {"type": "INT64", "comment": null, "index": 12, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 13, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 14, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 15, "name": "doc_number"}, "email_status": {"type": "STRING", "comment": null, "index": 16, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 17, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 18, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 19, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 20, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "print_status": {"type": "STRING", "comment": null, "index": 22, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 23, "name": "private_note"}, "remaining_credit": {"type": "INT64", "comment": null, "index": 24, "name": "remaining_credit"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 25, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 26, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 27, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 28, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 29, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 30, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 31, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1764.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate_line_tmp", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "payment_id": {"type": "INT64", "comment": null, "index": 2, "name": "payment_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "check_id": {"type": "INT64", "comment": null, "index": 5, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_credit_id"}, "credit_memo_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_memo_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 11, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 12, "name": "journal_entry_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "class_id": {"type": "INT64", "comment": null, "index": 4, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "custom_customer_type": {"type": "STRING", "comment": null, "index": 7, "name": "custom_customer_type"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 8, "name": "custom_p_o_number"}, "doc_number": {"type": "INT64", "comment": null, "index": 9, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 10, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 12, "name": "global_tax_calculation"}, "memo": {"type": "STRING", "comment": null, "index": 13, "name": "memo"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 14, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 15, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 17, "name": "shipping_address_id"}, "status": {"type": "STRING", "comment": null, "index": 18, "name": "status"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 23, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 24, "name": "updated_at"}, "vendor_address_id": {"type": "INT64", "comment": null, "index": 25, "name": "vendor_address_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "check_bank_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "check_bank_account_id"}, "check_print_status": {"type": "STRING", "comment": null, "index": 5, "name": "check_print_status"}, "created_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "created_at"}, "credit_card_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_account_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "pay_type": {"type": "STRING", "comment": null, "index": 12, "name": "pay_type"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "INT64", "comment": null, "index": 14, "name": "private_note"}, "process_bill_payment": {"type": "INT64", "comment": null, "index": 15, "name": "process_bill_payment"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt_line", "comment": null, "owner": null}, "columns": {"sales_receipt_id": {"type": "INT64", "comment": null, "index": 1, "name": "sales_receipt_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "discount_account_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 7, "name": "sales_item_item_id"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 8, "name": "sales_item_tax_code_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 10, "name": "sales_item_unit_price"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1240.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 11, "name": "custom_p_o_number"}, "customer_id": {"type": "INT64", "comment": null, "index": 12, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 13, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 14, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 15, "name": "doc_number"}, "email_status": {"type": "STRING", "comment": null, "index": 16, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 17, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 18, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 19, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 20, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "print_status": {"type": "STRING", "comment": null, "index": 22, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 23, "name": "private_note"}, "remaining_credit": {"type": "INT64", "comment": null, "index": 24, "name": "remaining_credit"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 25, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 26, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 27, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 28, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 29, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 30, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 31, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment_line", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "bill_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 6, "name": "expense_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 7, "name": "journal_entry_id"}, "linked_bill_payment_id": {"type": "INT64", "comment": null, "index": 8, "name": "linked_bill_payment_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 9, "name": "vendor_credit_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 320.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_linked_txn", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 2, "name": "payment_id"}, "estimate_id": {"type": "INT64", "comment": null, "index": 3, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 4, "name": "index"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 14.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 336.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "active": {"type": "BOOL", "comment": null, "index": 4, "name": "active"}, "alternate_phone": {"type": "INT64", "comment": null, "index": 5, "name": "alternate_phone"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "company_name": {"type": "STRING", "comment": null, "index": 8, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 11, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 12, "name": "email"}, "family_name": {"type": "INT64", "comment": null, "index": 13, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 14, "name": "fax_number"}, "given_name": {"type": "INT64", "comment": null, "index": 15, "name": "given_name"}, "middle_name": {"type": "INT64", "comment": null, "index": 16, "name": "middle_name"}, "mobile_phone": {"type": "INT64", "comment": null, "index": 17, "name": "mobile_phone"}, "other_contacts": {"type": "INT64", "comment": null, "index": 18, "name": "other_contacts"}, "primary_phone": {"type": "INT64", "comment": null, "index": 19, "name": "primary_phone"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 20, "name": "print_on_check_name"}, "suffix": {"type": "INT64", "comment": null, "index": 21, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 22, "name": "sync_token"}, "tax_identifier": {"type": "INT64", "comment": null, "index": 23, "name": "tax_identifier"}, "term_id": {"type": "INT64", "comment": null, "index": 24, "name": "term_id"}, "title": {"type": "INT64", "comment": null, "index": 25, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 26, "name": "updated_at"}, "vendor_1099": {"type": "BOOL", "comment": null, "index": 27, "name": "vendor_1099"}, "web_url": {"type": "INT64", "comment": null, "index": 28, "name": "web_url"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "INT64", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "STRING", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "FLOAT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "cash_back_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "cash_back_account_id"}, "cash_back_amount": {"type": "INT64", "comment": null, "index": 6, "name": "cash_back_amount"}, "cash_back_memo": {"type": "INT64", "comment": null, "index": 7, "name": "cash_back_memo"}, "created_at": {"type": "DATETIME", "comment": null, "index": 8, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 9, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 10, "name": "department_id"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 12, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 13, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 14, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 15, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 16, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 17, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 18, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 2, "name": "vendor_credit_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}, "private_note": {"type": "INT64", "comment": null, "index": 19, "name": "private_note"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 8, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 9, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 10, "name": "global_tax_calculation"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 11, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 12, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 13, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 14, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 17, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_linked_txn", "comment": null, "owner": null}, "columns": {"purchase_order_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_order_id"}, "bill_id": {"type": "INT64", "comment": null, "index": 2, "name": "bill_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 3, "name": "purchase_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 4, "name": "vendor_credit_id"}, "index": {"type": "INT64", "comment": null, "index": 5, "name": "index"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 216.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "check_bank_account_id": {"type": "INT64", "comment": null, "index": 2, "name": "check_bank_account_id"}, "check_print_status": {"type": "STRING", "comment": null, "index": 3, "name": "check_print_status"}, "credit_card_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "credit_card_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 5, "name": "exchange_rate"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "pay_type": {"type": "STRING", "comment": null, "index": 8, "name": "pay_type"}, "total_amount": {"type": "INT64", "comment": null, "index": 9, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 10, "name": "transaction_date"}, "vendor_id": {"type": "INT64", "comment": null, "index": 11, "name": "vendor_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 12, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 570.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "class_id": {"type": "INT64", "comment": null, "index": 6, "name": "class_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 9, "name": "exchange_rate"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 10, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 11, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 649.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo_line", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 5, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 6, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "FLOAT64", "comment": null, "index": 7, "name": "sales_item_unit_price"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 9, "name": "discount_class_id"}, "description": {"type": "STRING", "comment": null, "index": 10, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 794.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__transfer", "comment": null, "owner": null}, "columns": {"transfer_id": {"type": "INT64", "comment": null, "index": 1, "name": "transfer_id"}, "amount": {"type": "INT64", "comment": null, "index": 2, "name": "amount"}, "from_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "from_account_id"}, "to_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "to_account_id"}, "transaction_date": {"type": "DATE", "comment": null, "index": 5, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 6, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 82.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit", "comment": null, "owner": null}, "columns": {"vendor_credit_id": {"type": "INT64", "comment": null, "index": 1, "name": "vendor_credit_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "created_at": {"type": "DATETIME", "comment": null, "index": 7, "name": "created_at"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "payable_account_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "private_note": {"type": "STRING", "comment": null, "index": 10, "name": "private_note"}, "transaction_date": {"type": "DATE", "comment": null, "index": 11, "name": "transaction_date"}, "vendor_id": {"type": "INT64", "comment": null, "index": 12, "name": "vendor_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 142.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__account", "comment": null, "owner": null}, "columns": {"account_id": {"type": "INT64", "comment": null, "index": 1, "name": "account_id"}, "account_number": {"type": "STRING", "comment": null, "index": 2, "name": "account_number"}, "is_sub_account": {"type": "BOOL", "comment": null, "index": 3, "name": "is_sub_account"}, "parent_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "parent_account_id"}, "name": {"type": "STRING", "comment": null, "index": 5, "name": "name"}, "account_type": {"type": "STRING", "comment": null, "index": 6, "name": "account_type"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 7, "name": "account_sub_type"}, "classification": {"type": "STRING", "comment": null, "index": 8, "name": "classification"}, "balance": {"type": "INT64", "comment": null, "index": 9, "name": "balance"}, "balance_with_sub_accounts": {"type": "INT64", "comment": null, "index": 10, "name": "balance_with_sub_accounts"}, "is_active": {"type": "BOOL", "comment": null, "index": 11, "name": "is_active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 12, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 13, "name": "currency_id"}, "description": {"type": "INT64", "comment": null, "index": 14, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 15, "name": "fully_qualified_name"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1671.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "adjustment": {"type": "BOOL", "comment": null, "index": 4, "name": "adjustment"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "doc_number": {"type": "STRING", "comment": null, "index": 7, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 9, "name": "home_total_amount"}, "private_note": {"type": "STRING", "comment": null, "index": 10, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 11, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 13, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 14, "name": "total_tax"}, "transaction_date": {"type": "DATE", "comment": null, "index": 15, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 16, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "account_id": {"type": "INT64", "comment": null, "index": 2, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 5, "name": "department_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 6, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 7, "name": "transaction_date"}, "transaction_status": {"type": "INT64", "comment": null, "index": 8, "name": "transaction_status"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 9, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 230.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_line", "comment": null, "owner": null}, "columns": {"purchase_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_account_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_class_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_customer_id"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 7, "name": "account_expense_tax_code_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_item_id"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 9, "name": "item_expense_billable_status"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_customer_id"}, "amount": {"type": "INT64", "comment": null, "index": 11, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1340.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "description": {"type": "STRING", "comment": null, "index": 5, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 6, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 7, "name": "name"}, "print_grouped_items": {"type": "BOOL", "comment": null, "index": 8, "name": "print_grouped_items"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 9, "name": "purchase_cost"}, "sync_token": {"type": "INT64", "comment": null, "index": 10, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 11, "name": "taxable"}, "unit_price": {"type": "INT64", "comment": null, "index": 12, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 13, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_line", "comment": null, "owner": null}, "columns": {"purchase_order_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_order_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_account_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_class_id"}, "account_expense_billable_status": {"type": "INT64", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_customer_id"}, "account_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_tax_code_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_item_id"}, "item_expense_billable_status": {"type": "STRING", "comment": null, "index": 9, "name": "item_expense_billable_status"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_customer_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 11, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 719.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 8, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 9, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 22, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 23, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 24, "name": "customer_memo"}, "delivery_time": {"type": "INT64", "comment": null, "index": 25, "name": "delivery_time"}, "delivery_type": {"type": "INT64", "comment": null, "index": 26, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 27, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 28, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 29, "name": "doc_number"}, "email_status": {"type": "INT64", "comment": null, "index": 30, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 31, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 32, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 33, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 34, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 35, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 36, "name": "payment_reference_number"}, "print_status": {"type": "INT64", "comment": null, "index": 37, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 38, "name": "private_note"}, "ship_date": {"type": "INT64", "comment": null, "index": 39, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 40, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 41, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 42, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 43, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 44, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 45, "name": "tracking_number"}, "transaction_date": {"type": "INT64", "comment": null, "index": 46, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 48, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor_credit_line", "comment": null, "owner": null}, "columns": {"vendor_credit_id": {"type": "INT64", "comment": null, "index": 1, "name": "vendor_credit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_customer_id"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 6, "name": "account_expense_tax_code_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 9, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_quantity"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 11, "name": "item_expense_unit_price"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_class_id"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_billable_status"}, "amount": {"type": "INT64", "comment": null, "index": 14, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 15, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 210.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 6, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 9, "name": "transaction_date"}, "customer_id": {"type": "INT64", "comment": null, "index": 10, "name": "customer_id"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 11, "name": "billing_address_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 12, "name": "shipping_address_id"}, "delivery_type": {"type": "STRING", "comment": null, "index": 13, "name": "delivery_type"}, "due_date": {"type": "DATETIME", "comment": null, "index": 14, "name": "due_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 15, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 89.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry_line", "comment": null, "owner": null}, "columns": {"journal_entry_id": {"type": "INT64", "comment": null, "index": 1, "name": "journal_entry_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "customer_id": {"type": "INT64", "comment": null, "index": 5, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 6, "name": "department_id"}, "class_id": {"type": "INT64", "comment": null, "index": 7, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 8, "name": "description"}, "billable_status": {"type": "INT64", "comment": null, "index": 9, "name": "billable_status"}, "posting_type": {"type": "STRING", "comment": null, "index": 10, "name": "posting_type"}, "vendor_id": {"type": "INT64", "comment": null, "index": 11, "name": "vendor_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 455.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "comment": null, "owner": null}, "columns": {"bill_payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bill_id": {"type": "INT64", "comment": null, "index": 5, "name": "bill_id"}, "check_id": {"type": "INT64", "comment": null, "index": 6, "name": "check_id"}, "credit_card_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_charge_id"}, "credit_card_credit_id": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_credit_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_id"}, "expense_id": {"type": "INT64", "comment": null, "index": 10, "name": "expense_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 11, "name": "journal_entry_id"}, "linked_bill_payment_id": {"type": "INT64", "comment": null, "index": 12, "name": "linked_bill_payment_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 13, "name": "vendor_credit_id"}, "bill_payment_credit_card_id": {"type": "INT64", "comment": null, "index": 14, "name": "bill_payment_credit_card_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__account_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "INT64", "comment": null, "index": 3, "name": "account_number"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 4, "name": "account_sub_type"}, "account_type": {"type": "STRING", "comment": null, "index": 5, "name": "account_type"}, "active": {"type": "BOOL", "comment": null, "index": 6, "name": "active"}, "balance": {"type": "INT64", "comment": null, "index": 7, "name": "balance"}, "balance_with_sub_accounts": {"type": "INT64", "comment": null, "index": 8, "name": "balance_with_sub_accounts"}, "classification": {"type": "STRING", "comment": null, "index": 9, "name": "classification"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "description": {"type": "INT64", "comment": null, "index": 12, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 13, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 14, "name": "name"}, "parent_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "parent_account_id"}, "sub_account": {"type": "BOOL", "comment": null, "index": 16, "name": "sub_account"}, "sync_token": {"type": "INT64", "comment": null, "index": 17, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 18, "name": "tax_code_id"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_order_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_order_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 5, "name": "purchase_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 6, "name": "vendor_credit_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 2, "name": "journal_entry_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 5, "name": "amount"}, "billable_status": {"type": "INT64", "comment": null, "index": 6, "name": "billable_status"}, "class_id": {"type": "INT64", "comment": null, "index": 7, "name": "class_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "description": {"type": "STRING", "comment": null, "index": 10, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 11, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 12, "name": "description_tax_code_id"}, "employee_id": {"type": "INT64", "comment": null, "index": 13, "name": "employee_id"}, "posting_type": {"type": "STRING", "comment": null, "index": 14, "name": "posting_type"}, "tax_amount": {"type": "INT64", "comment": null, "index": 15, "name": "tax_amount"}, "tax_applicable_on": {"type": "INT64", "comment": null, "index": 16, "name": "tax_applicable_on"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "tax_code_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 18, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__item_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "asset_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "asset_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "description": {"type": "INT64", "comment": null, "index": 6, "name": "description"}, "expense_account_id": {"type": "INT64", "comment": null, "index": 7, "name": "expense_account_id"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 8, "name": "fully_qualified_name"}, "income_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "income_account_id"}, "inventory_start_date": {"type": "INT64", "comment": null, "index": 10, "name": "inventory_start_date"}, "level": {"type": "INT64", "comment": null, "index": 11, "name": "level"}, "name": {"type": "STRING", "comment": null, "index": 12, "name": "name"}, "parent_item_id": {"type": "INT64", "comment": null, "index": 13, "name": "parent_item_id"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 14, "name": "purchase_cost"}, "purchase_description": {"type": "INT64", "comment": null, "index": 15, "name": "purchase_description"}, "purchase_tax_code_id": {"type": "INT64", "comment": null, "index": 16, "name": "purchase_tax_code_id"}, "purchase_tax_included": {"type": "INT64", "comment": null, "index": 17, "name": "purchase_tax_included"}, "quantity_on_hand": {"type": "INT64", "comment": null, "index": 18, "name": "quantity_on_hand"}, "sales_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_tax_code_id"}, "sales_tax_included": {"type": "INT64", "comment": null, "index": 20, "name": "sales_tax_included"}, "stock_keeping_unit": {"type": "INT64", "comment": null, "index": 21, "name": "stock_keeping_unit"}, "sub_item": {"type": "INT64", "comment": null, "index": 22, "name": "sub_item"}, "sync_token": {"type": "INT64", "comment": null, "index": 23, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 24, "name": "taxable"}, "track_quantity_on_hand": {"type": "BOOL", "comment": null, "index": 25, "name": "track_quantity_on_hand"}, "type": {"type": "STRING", "comment": null, "index": 26, "name": "type"}, "unit_price": {"type": "INT64", "comment": null, "index": 27, "name": "unit_price"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 28, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 5, "name": "department_id"}, "due_date_at": {"type": "DATE", "comment": null, "index": 6, "name": "due_date_at"}, "transaction_date": {"type": "DATE", "comment": null, "index": 7, "name": "transaction_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 8, "name": "exchange_rate"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "payable_account_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 10, "name": "total_amount"}, "vendor_id": {"type": "INT64", "comment": null, "index": 11, "name": "vendor_id"}, "private_note": {"type": "STRING", "comment": null, "index": 12, "name": "private_note"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 340.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__department", "comment": null, "owner": null}, "columns": {"department_id": {"type": "INT64", "comment": null, "index": 1, "name": "department_id"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "updated_at"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 5, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "is_sub_department": {"type": "BOOL", "comment": null, "index": 7, "name": "is_sub_department"}, "parent_department_id": {"type": "INT64", "comment": null, "index": 8, "name": "parent_department_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 6.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 564.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__address_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "city": {"type": "STRING", "comment": null, "index": 3, "name": "city"}, "country": {"type": "STRING", "comment": null, "index": 4, "name": "country"}, "country_sub_division_code": {"type": "STRING", "comment": null, "index": 5, "name": "country_sub_division_code"}, "latitude": {"type": "INT64", "comment": null, "index": 6, "name": "latitude"}, "line_1": {"type": "STRING", "comment": null, "index": 7, "name": "line_1"}, "line_2": {"type": "STRING", "comment": null, "index": 8, "name": "line_2"}, "line_3": {"type": "INT64", "comment": null, "index": 9, "name": "line_3"}, "line_4": {"type": "INT64", "comment": null, "index": 10, "name": "line_4"}, "line_5": {"type": "INT64", "comment": null, "index": 11, "name": "line_5"}, "longitude": {"type": "INT64", "comment": null, "index": 12, "name": "longitude"}, "postal_code": {"type": "INT64", "comment": null, "index": 13, "name": "postal_code"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_linked_txn", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "bill_payment_id": {"type": "INT64", "comment": null, "index": 3, "name": "bill_payment_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 240.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "bill_payment_id": {"type": "INT64", "comment": null, "index": 4, "name": "bill_payment_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 2, "name": "created_at"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 4, "name": "fully_qualified_name"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 590.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit_line_tmp", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "deposit_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_account_id"}, "deposit_check_number": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_check_number"}, "deposit_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_class_id"}, "deposit_customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "deposit_customer_id"}, "deposit_payment_method_id": {"type": "INT64", "comment": null, "index": 9, "name": "deposit_payment_method_id"}, "deposit_tax_applicable_on": {"type": "INT64", "comment": null, "index": 10, "name": "deposit_tax_applicable_on"}, "deposit_tax_code_id": {"type": "INT64", "comment": null, "index": 11, "name": "deposit_tax_code_id"}, "deposit_transaction_type": {"type": "INT64", "comment": null, "index": 12, "name": "deposit_transaction_type"}, "description": {"type": "STRING", "comment": null, "index": 13, "name": "description"}, "detail_type": {"type": "STRING", "comment": null, "index": 14, "name": "detail_type"}, "expense_id": {"type": "INT64", "comment": null, "index": 15, "name": "expense_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 16, "name": "invoice_id"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 17, "name": "journal_entry_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 18, "name": "payment_id"}, "purchase_id": {"type": "INT64", "comment": null, "index": 19, "name": "purchase_id"}, "refund_receipt_id": {"type": "INT64", "comment": null, "index": 20, "name": "refund_receipt_id"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 21, "name": "sales_receipt_id"}, "transfer_id": {"type": "INT64", "comment": null, "index": 22, "name": "transfer_id"}, "bill_id": {"type": "INT64", "comment": null, "index": 23, "name": "bill_id"}, "vendor_credit_id": {"type": "INT64", "comment": null, "index": 24, "name": "vendor_credit_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "allow_ipnpayment": {"type": "BOOL", "comment": null, "index": 4, "name": "allow_ipnpayment"}, "allow_online_achpayment": {"type": "BOOL", "comment": null, "index": 5, "name": "allow_online_achpayment"}, "allow_online_credit_card_payment": {"type": "BOOL", "comment": null, "index": 6, "name": "allow_online_credit_card_payment"}, "allow_online_payment": {"type": "BOOL", "comment": null, "index": 7, "name": "allow_online_payment"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 8, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 9, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 10, "name": "billing_address_id"}, "billing_bcc_email": {"type": "STRING", "comment": null, "index": 11, "name": "billing_bcc_email"}, "billing_cc_email": {"type": "INT64", "comment": null, "index": 12, "name": "billing_cc_email"}, "billing_email": {"type": "STRING", "comment": null, "index": 13, "name": "billing_email"}, "class_id": {"type": "INT64", "comment": null, "index": 14, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 15, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 16, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 17, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 18, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 19, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 20, "name": "customer_memo"}, "delivery_time": {"type": "DATETIME", "comment": null, "index": 21, "name": "delivery_time"}, "delivery_type": {"type": "STRING", "comment": null, "index": 22, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 23, "name": "department_id"}, "deposit": {"type": "INT64", "comment": null, "index": 24, "name": "deposit"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 25, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 26, "name": "doc_number"}, "due_date": {"type": "DATETIME", "comment": null, "index": 27, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 28, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 29, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 30, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 31, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 32, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 33, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 34, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 35, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 36, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 37, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 38, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 39, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 40, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 41, "name": "total_tax"}, "tracking_number": {"type": "INT64", "comment": null, "index": 42, "name": "tracking_number"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 43, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 44, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 45, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "class_id": {"type": "INT64", "comment": null, "index": 2, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 5, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 6, "name": "department_id"}, "due_date": {"type": "INT64", "comment": null, "index": 7, "name": "due_date"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 8, "name": "total_amount"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 9, "name": "transaction_date"}, "transaction_status": {"type": "STRING", "comment": null, "index": 10, "name": "transaction_status"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 11, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 560.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__journal_entry", "comment": null, "owner": null}, "columns": {"journal_entry_id": {"type": "INT64", "comment": null, "index": 1, "name": "journal_entry_id"}, "is_adjustment": {"type": "BOOL", "comment": null, "index": 2, "name": "is_adjustment"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "doc_number": {"type": "STRING", "comment": null, "index": 5, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "private_note": {"type": "STRING", "comment": null, "index": 7, "name": "private_note"}, "total_amount": {"type": "INT64", "comment": null, "index": 8, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 9, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 10, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 9.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 963.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__transfer_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "from_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "from_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 7, "name": "private_note"}, "sync_token": {"type": "INT64", "comment": null, "index": 8, "name": "sync_token"}, "to_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "to_account_id"}, "transaction_date": {"type": "DATE", "comment": null, "index": 10, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__address", "comment": null, "owner": null}, "columns": {"address_id": {"type": "INT64", "comment": null, "index": 1, "name": "address_id"}, "city": {"type": "STRING", "comment": null, "index": 2, "name": "city"}, "country": {"type": "STRING", "comment": null, "index": 3, "name": "country"}, "address_1": {"type": "STRING", "comment": null, "index": 4, "name": "address_1"}, "address_2": {"type": "STRING", "comment": null, "index": 5, "name": "address_2"}, "postal_code": {"type": "INT64", "comment": null, "index": 6, "name": "postal_code"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 104.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "purchase_id": {"type": "INT64", "comment": null, "index": 2, "name": "purchase_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "comment": null, "owner": null}, "columns": {"credit_memo_id": {"type": "INT64", "comment": null, "index": 1, "name": "credit_memo_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "FLOAT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "amount": {"type": "FLOAT64", "comment": null, "index": 5, "name": "amount"}, "class_id": {"type": "INT64", "comment": null, "index": 6, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "discount_amount": {"type": "INT64", "comment": null, "index": 8, "name": "discount_amount"}, "discount_rate": {"type": "INT64", "comment": null, "index": 9, "name": "discount_rate"}, "invoice_line_index": {"type": "INT64", "comment": null, "index": 10, "name": "invoice_line_index"}, "item_id": {"type": "INT64", "comment": null, "index": 11, "name": "item_id"}, "line_num": {"type": "INT64", "comment": null, "index": 12, "name": "line_num"}, "quantity": {"type": "FLOAT64", "comment": null, "index": 13, "name": "quantity"}, "service_date": {"type": "INT64", "comment": null, "index": 14, "name": "service_date"}, "tax_code_id": {"type": "STRING", "comment": null, "index": 15, "name": "tax_code_id"}, "unit_price": {"type": "INT64", "comment": null, "index": 16, "name": "unit_price"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_quantity"}, "sales_item_tax_code_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_account_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 6, "name": "currency_id"}, "department_id": {"type": "INT64", "comment": null, "index": 7, "name": "department_id"}, "doc_number": {"type": "DATE", "comment": null, "index": 8, "name": "doc_number"}, "due_date": {"type": "DATE", "comment": null, "index": 9, "name": "due_date"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 10, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 11, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 12, "name": "home_balance"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 13, "name": "payable_account_id"}, "private_note": {"type": "STRING", "comment": null, "index": 14, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_term_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 16, "name": "sync_token"}, "total_amount": {"type": "INT64", "comment": null, "index": 17, "name": "total_amount"}, "transaction_date": {"type": "DATE", "comment": null, "index": 18, "name": "transaction_date"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 19, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 20, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "FLOAT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "FLOAT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 25, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 26, "name": "quantity"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 27, "name": "tax_code_id"}, "account_id": {"type": "INT64", "comment": null, "index": 28, "name": "account_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "accepted_by": {"type": "INT64", "comment": null, "index": 4, "name": "accepted_by"}, "accepted_date": {"type": "INT64", "comment": null, "index": 5, "name": "accepted_date"}, "apply_tax_after_discount": {"type": "BOOL", "comment": null, "index": 6, "name": "apply_tax_after_discount"}, "bill_email": {"type": "STRING", "comment": null, "index": 7, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "billing_address_id"}, "class_id": {"type": "INT64", "comment": null, "index": 9, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "custom_p_o_number": {"type": "INT64", "comment": null, "index": 12, "name": "custom_p_o_number"}, "custom_sales_rep": {"type": "INT64", "comment": null, "index": 13, "name": "custom_sales_rep"}, "customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 15, "name": "customer_memo"}, "delivery_type": {"type": "INT64", "comment": null, "index": 16, "name": "delivery_type"}, "department_id": {"type": "INT64", "comment": null, "index": 17, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 18, "name": "doc_number"}, "due_date": {"type": "INT64", "comment": null, "index": 19, "name": "due_date"}, "email_status": {"type": "STRING", "comment": null, "index": 20, "name": "email_status"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 21, "name": "exchange_rate"}, "expiration_date": {"type": "INT64", "comment": null, "index": 22, "name": "expiration_date"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 23, "name": "global_tax_calculation"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 24, "name": "home_total_amount"}, "print_status": {"type": "STRING", "comment": null, "index": 25, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 26, "name": "private_note"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 27, "name": "sales_term_id"}, "ship_date": {"type": "INT64", "comment": null, "index": 28, "name": "ship_date"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 29, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 30, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 31, "name": "tax_code_id"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 32, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 33, "name": "total_tax"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 34, "name": "transaction_date"}, "transaction_status": {"type": "STRING", "comment": null, "index": 35, "name": "transaction_status"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 36, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__deposit_line", "comment": null, "owner": null}, "columns": {"deposit_id": {"type": "INT64", "comment": null, "index": 1, "name": "deposit_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "deposit_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_account_id"}, "deposit_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_class_id"}, "deposit_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "deposit_customer_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 7.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 494.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "FLOAT64", "comment": null, "index": 3, "name": "amount"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 5, "name": "sales_item_item_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_class_id"}, "sales_item_quantity": {"type": "FLOAT64", "comment": null, "index": 7, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 8, "name": "sales_item_unit_price"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 9, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_class_id"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "quantity": {"type": "INT64", "comment": null, "index": 12, "name": "quantity"}, "bundle_quantity": {"type": "FLOAT64", "comment": null, "index": 13, "name": "bundle_quantity"}, "bundle_id": {"type": "INT64", "comment": null, "index": 14, "name": "bundle_id"}, "account_id": {"type": "INT64", "comment": null, "index": 15, "name": "account_id"}, "item_id": {"type": "INT64", "comment": null, "index": 16, "name": "item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 538.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle_item", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "item_id": {"type": "INT64", "comment": null, "index": 2, "name": "item_id"}, "item_quantity": {"type": "INT64", "comment": null, "index": 3, "name": "item_quantity"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 312.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment", "comment": null, "owner": null}, "columns": {"payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "payment_id"}, "unapplied_amount": {"type": "INT64", "comment": null, "index": 2, "name": "unapplied_amount"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 3, "name": "total_amount"}, "currency_id": {"type": "STRING", "comment": null, "index": 4, "name": "currency_id"}, "receivable_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "receivable_account_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 7, "name": "exchange_rate"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 8, "name": "transaction_date"}, "customer_id": {"type": "INT64", "comment": null, "index": 9, "name": "customer_id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 10, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 594.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "apply_tax_after_discount": {"type": "INT64", "comment": null, "index": 4, "name": "apply_tax_after_discount"}, "balance": {"type": "INT64", "comment": null, "index": 5, "name": "balance"}, "bill_email": {"type": "STRING", "comment": null, "index": 6, "name": "bill_email"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 7, "name": "billing_address_id"}, "check_payment_account_number": {"type": "INT64", "comment": null, "index": 8, "name": "check_payment_account_number"}, "check_payment_bank_name": {"type": "INT64", "comment": null, "index": 9, "name": "check_payment_bank_name"}, "check_payment_check_number": {"type": "INT64", "comment": null, "index": 10, "name": "check_payment_check_number"}, "check_payment_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "check_payment_name_on_account"}, "check_payment_status": {"type": "INT64", "comment": null, "index": 12, "name": "check_payment_status"}, "class_id": {"type": "INT64", "comment": null, "index": 13, "name": "class_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 14, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 17, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 18, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 19, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 20, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 21, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 22, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 23, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 24, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 25, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 26, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 27, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 28, "name": "customer_id"}, "customer_memo": {"type": "STRING", "comment": null, "index": 29, "name": "customer_memo"}, "department_id": {"type": "INT64", "comment": null, "index": 30, "name": "department_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 31, "name": "deposit_to_account_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 32, "name": "doc_number"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 33, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 34, "name": "global_tax_calculation"}, "home_balance": {"type": "INT64", "comment": null, "index": 35, "name": "home_balance"}, "home_total_amount": {"type": "INT64", "comment": null, "index": 36, "name": "home_total_amount"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 37, "name": "payment_method_id"}, "payment_reference_number": {"type": "INT64", "comment": null, "index": 38, "name": "payment_reference_number"}, "payment_type": {"type": "INT64", "comment": null, "index": 39, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 40, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 41, "name": "private_note"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 42, "name": "shipping_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 43, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 44, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 45, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 46, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 47, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 48, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 49, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__item", "comment": null, "owner": null}, "columns": {"item_id": {"type": "INT64", "comment": null, "index": 1, "name": "item_id"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "income_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "income_account_id"}, "asset_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "asset_account_id"}, "expense_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "expense_account_id"}, "name": {"type": "STRING", "comment": null, "index": 7, "name": "name"}, "purchase_cost": {"type": "INT64", "comment": null, "index": 8, "name": "purchase_cost"}, "taxable": {"type": "BOOL", "comment": null, "index": 9, "name": "taxable"}, "type": {"type": "STRING", "comment": null, "index": 10, "name": "type"}, "unit_price": {"type": "INT64", "comment": null, "index": 11, "name": "unit_price"}, "inventory_start_date": {"type": "INT64", "comment": null, "index": 12, "name": "inventory_start_date"}, "parent_item_id": {"type": "INT64", "comment": null, "index": 13, "name": "parent_item_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 330.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt", "comment": null, "owner": null}, "columns": {"sales_receipt_id": {"type": "INT64", "comment": null, "index": 1, "name": "sales_receipt_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_to_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 6, "name": "created_at"}, "customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 8, "name": "department_id"}, "class_id": {"type": "INT64", "comment": null, "index": 9, "name": "class_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "transaction_date": {"type": "INT64", "comment": null, "index": 12, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "credit_card_amount": {"type": "INT64", "comment": null, "index": 5, "name": "credit_card_amount"}, "credit_card_auth_code": {"type": "INT64", "comment": null, "index": 6, "name": "credit_card_auth_code"}, "credit_card_billing_address_street": {"type": "INT64", "comment": null, "index": 7, "name": "credit_card_billing_address_street"}, "credit_card_cc_expiry_month": {"type": "INT64", "comment": null, "index": 8, "name": "credit_card_cc_expiry_month"}, "credit_card_cc_expiry_year": {"type": "INT64", "comment": null, "index": 9, "name": "credit_card_cc_expiry_year"}, "credit_card_cctrans_id": {"type": "INT64", "comment": null, "index": 10, "name": "credit_card_cctrans_id"}, "credit_card_name_on_account": {"type": "INT64", "comment": null, "index": 11, "name": "credit_card_name_on_account"}, "credit_card_postal_code": {"type": "INT64", "comment": null, "index": 12, "name": "credit_card_postal_code"}, "credit_card_process_payment": {"type": "INT64", "comment": null, "index": 13, "name": "credit_card_process_payment"}, "credit_card_status": {"type": "INT64", "comment": null, "index": 14, "name": "credit_card_status"}, "credit_card_transaction_authorization_time": {"type": "INT64", "comment": null, "index": 15, "name": "credit_card_transaction_authorization_time"}, "credit_card_type": {"type": "INT64", "comment": null, "index": 16, "name": "credit_card_type"}, "currency_id": {"type": "STRING", "comment": null, "index": 17, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 18, "name": "customer_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 19, "name": "deposit_to_account_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 20, "name": "exchange_rate"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 21, "name": "payment_method_id"}, "private_note": {"type": "STRING", "comment": null, "index": 22, "name": "private_note"}, "process_payment": {"type": "BOOL", "comment": null, "index": 23, "name": "process_payment"}, "receivable_account_id": {"type": "INT64", "comment": null, "index": 24, "name": "receivable_account_id"}, "reference_number": {"type": "INT64", "comment": null, "index": 25, "name": "reference_number"}, "sync_token": {"type": "INT64", "comment": null, "index": 26, "name": "sync_token"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 27, "name": "total_amount"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 28, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 29, "name": "transaction_source"}, "transaction_status": {"type": "INT64", "comment": null, "index": 30, "name": "transaction_status"}, "unapplied_amount": {"type": "INT64", "comment": null, "index": 31, "name": "unapplied_amount"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 32, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt_line", "comment": null, "owner": null}, "columns": {"refund_id": {"type": "INT64", "comment": null, "index": 1, "name": "refund_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "INT64", "comment": null, "index": 3, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "discount_account_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_account_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 7, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 8, "name": "sales_item_quantity"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_unit_price"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 10, "name": "sales_item_tax_code_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 4.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 280.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "sales_receipt_id": {"type": "INT64", "comment": null, "index": 2, "name": "sales_receipt_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__vendor", "comment": null, "owner": null}, "columns": {"vendor_id": {"type": "INT64", "comment": null, "index": 1, "name": "vendor_id"}, "account_number": {"type": "INT64", "comment": null, "index": 2, "name": "account_number"}, "is_active": {"type": "BOOL", "comment": null, "index": 3, "name": "is_active"}, "balance": {"type": "INT64", "comment": null, "index": 4, "name": "balance"}, "billing_address_id": {"type": "INT64", "comment": null, "index": 5, "name": "billing_address_id"}, "company_name": {"type": "STRING", "comment": null, "index": 6, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 7, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 9, "name": "display_name"}, "web_url": {"type": "INT64", "comment": null, "index": 10, "name": "web_url"}, "is_vendor_1099": {"type": "BOOL", "comment": null, "index": 11, "name": "is_vendor_1099"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 828.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase", "comment": null, "owner": null}, "columns": {"purchase_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_id"}, "account_id": {"type": "INT64", "comment": null, "index": 2, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 3, "name": "created_at"}, "doc_number": {"type": "STRING", "comment": null, "index": 4, "name": "doc_number"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "credit": {"type": "INT64", "comment": null, "index": 7, "name": "credit"}, "total_amount": {"type": "INT64", "comment": null, "index": 8, "name": "total_amount"}, "payment_type": {"type": "STRING", "comment": null, "index": 9, "name": "payment_type"}, "department_id": {"type": "INT64", "comment": null, "index": 10, "name": "department_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 11, "name": "customer_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 12, "name": "vendor_id"}, "transaction_date": {"type": "INT64", "comment": null, "index": 13, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 14, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__department_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "created_at": {"type": "DATETIME", "comment": null, "index": 4, "name": "created_at"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 5, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 6, "name": "name"}, "parent_department_id": {"type": "INT64", "comment": null, "index": 7, "name": "parent_department_id"}, "sub_department": {"type": "BOOL", "comment": null, "index": 8, "name": "sub_department"}, "sync_token": {"type": "INT64", "comment": null, "index": 9, "name": "sync_token"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 10, "name": "updated_at"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_line_bundle", "comment": null, "owner": null}, "columns": {"invoice_id": {"type": "INT64", "comment": null, "index": 1, "name": "invoice_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "class_id": {"type": "INT64", "comment": null, "index": 3, "name": "class_id"}, "description": {"type": "STRING", "comment": null, "index": 4, "name": "description"}, "amount": {"type": "FLOAT64", "comment": null, "index": 5, "name": "amount"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_item_id"}, "item_id": {"type": "INT64", "comment": null, "index": 7, "name": "item_id"}, "quantity": {"type": "FLOAT64", "comment": null, "index": 8, "name": "quantity"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_quantity"}, "account_id": {"type": "INT64", "comment": null, "index": 10, "name": "account_id"}, "unit_price": {"type": "INT64", "comment": null, "index": 11, "name": "unit_price"}, "invoice_line_index": {"type": "INT64", "comment": null, "index": 12, "name": "invoice_line_index"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 900.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_order", "comment": null, "owner": null}, "columns": {"purchase_order_id": {"type": "INT64", "comment": null, "index": 1, "name": "purchase_order_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 2, "name": "created_at"}, "custom_po_number": {"type": "STRING", "comment": null, "index": 3, "name": "custom_po_number"}, "doc_number": {"type": "STRING", "comment": null, "index": 4, "name": "doc_number"}, "currency_id": {"type": "STRING", "comment": null, "index": 5, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 6, "name": "exchange_rate"}, "total_amount": {"type": "FLOAT64", "comment": null, "index": 7, "name": "total_amount"}, "payable_account_id": {"type": "INT64", "comment": null, "index": 8, "name": "payable_account_id"}, "vendor_id": {"type": "INT64", "comment": null, "index": 9, "name": "vendor_id"}, "transaction_date": {"type": "DATETIME", "comment": null, "index": 10, "name": "transaction_date"}, "status": {"type": "STRING", "comment": null, "index": 11, "name": "status"}, "due_date": {"type": "INT64", "comment": null, "index": 12, "name": "due_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 12.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 792.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__customer_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "alternate_phone_number": {"type": "INT64", "comment": null, "index": 4, "name": "alternate_phone_number"}, "ar_account_id": {"type": "INT64", "comment": null, "index": 5, "name": "ar_account_id"}, "balance": {"type": "INT64", "comment": null, "index": 6, "name": "balance"}, "balance_with_jobs": {"type": "INT64", "comment": null, "index": 7, "name": "balance_with_jobs"}, "bill_address_id": {"type": "INT64", "comment": null, "index": 8, "name": "bill_address_id"}, "bill_with_parent": {"type": "BOOL", "comment": null, "index": 9, "name": "bill_with_parent"}, "company_name": {"type": "STRING", "comment": null, "index": 10, "name": "company_name"}, "created_at": {"type": "DATETIME", "comment": null, "index": 11, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 12, "name": "currency_id"}, "default_tax_code_id": {"type": "INT64", "comment": null, "index": 13, "name": "default_tax_code_id"}, "display_name": {"type": "STRING", "comment": null, "index": 14, "name": "display_name"}, "email": {"type": "STRING", "comment": null, "index": 15, "name": "email"}, "family_name": {"type": "STRING", "comment": null, "index": 16, "name": "family_name"}, "fax_number": {"type": "INT64", "comment": null, "index": 17, "name": "fax_number"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 18, "name": "fully_qualified_name"}, "given_name": {"type": "STRING", "comment": null, "index": 19, "name": "given_name"}, "job": {"type": "BOOL", "comment": null, "index": 20, "name": "job"}, "level": {"type": "INT64", "comment": null, "index": 21, "name": "level"}, "middle_name": {"type": "INT64", "comment": null, "index": 22, "name": "middle_name"}, "mobile_number": {"type": "INT64", "comment": null, "index": 23, "name": "mobile_number"}, "notes": {"type": "INT64", "comment": null, "index": 24, "name": "notes"}, "open_balance_date": {"type": "INT64", "comment": null, "index": 25, "name": "open_balance_date"}, "parent_customer_id": {"type": "INT64", "comment": null, "index": 26, "name": "parent_customer_id"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 27, "name": "payment_method_id"}, "phone_number": {"type": "INT64", "comment": null, "index": 28, "name": "phone_number"}, "preferred_delivery_method": {"type": "STRING", "comment": null, "index": 29, "name": "preferred_delivery_method"}, "print_on_check_name": {"type": "STRING", "comment": null, "index": 30, "name": "print_on_check_name"}, "resale_number": {"type": "INT64", "comment": null, "index": 31, "name": "resale_number"}, "sales_term_id": {"type": "INT64", "comment": null, "index": 32, "name": "sales_term_id"}, "shipping_address_id": {"type": "INT64", "comment": null, "index": 33, "name": "shipping_address_id"}, "suffix": {"type": "INT64", "comment": null, "index": 34, "name": "suffix"}, "sync_token": {"type": "INT64", "comment": null, "index": 35, "name": "sync_token"}, "tax_exemption_reason_id": {"type": "INT64", "comment": null, "index": 36, "name": "tax_exemption_reason_id"}, "taxable": {"type": "BOOL", "comment": null, "index": 37, "name": "taxable"}, "title": {"type": "INT64", "comment": null, "index": 38, "name": "title"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 39, "name": "updated_at"}, "website": {"type": "INT64", "comment": null, "index": 40, "name": "website"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "refund_id": {"type": "INT64", "comment": null, "index": 2, "name": "refund_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "amount": {"type": "INT64", "comment": null, "index": 4, "name": "amount"}, "bundle_id": {"type": "INT64", "comment": null, "index": 5, "name": "bundle_id"}, "bundle_quantity": {"type": "INT64", "comment": null, "index": 6, "name": "bundle_quantity"}, "description": {"type": "STRING", "comment": null, "index": 7, "name": "description"}, "description_service_date": {"type": "INT64", "comment": null, "index": 8, "name": "description_service_date"}, "description_tax_code_id": {"type": "INT64", "comment": null, "index": 9, "name": "description_tax_code_id"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 10, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 11, "name": "discount_class_id"}, "discount_discount_percent": {"type": "INT64", "comment": null, "index": 12, "name": "discount_discount_percent"}, "discount_percent_based": {"type": "INT64", "comment": null, "index": 13, "name": "discount_percent_based"}, "discount_tax_code_id": {"type": "INT64", "comment": null, "index": 14, "name": "discount_tax_code_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 15, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 16, "name": "sales_item_class_id"}, "sales_item_discount_amount": {"type": "INT64", "comment": null, "index": 17, "name": "sales_item_discount_amount"}, "sales_item_discount_rate": {"type": "INT64", "comment": null, "index": 18, "name": "sales_item_discount_rate"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 19, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 20, "name": "sales_item_quantity"}, "sales_item_service_date": {"type": "INT64", "comment": null, "index": 21, "name": "sales_item_service_date"}, "sales_item_tax_code_id": {"type": "STRING", "comment": null, "index": 22, "name": "sales_item_tax_code_id"}, "sales_item_unit_price": {"type": "INT64", "comment": null, "index": 23, "name": "sales_item_unit_price"}, "sub_total_item_id": {"type": "INT64", "comment": null, "index": 24, "name": "sub_total_item_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_line_tmp", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_account_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 6, "name": "account_expense_class_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "account_expense_tax_amount": {"type": "INT64", "comment": null, "index": 8, "name": "account_expense_tax_amount"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 9, "name": "account_expense_tax_code_id"}, "amount": {"type": "INT64", "comment": null, "index": 10, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 11, "name": "description"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 12, "name": "item_expense_billable_status"}, "item_expense_class_id": {"type": "INT64", "comment": null, "index": 13, "name": "item_expense_class_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 14, "name": "item_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 15, "name": "item_expense_item_id"}, "item_expense_quantity": {"type": "INT64", "comment": null, "index": 16, "name": "item_expense_quantity"}, "item_expense_tax_code_id": {"type": "INT64", "comment": null, "index": 17, "name": "item_expense_tax_code_id"}, "item_expense_unit_price": {"type": "INT64", "comment": null, "index": 18, "name": "item_expense_unit_price"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bill_line", "comment": null, "owner": null}, "columns": {"bill_id": {"type": "INT64", "comment": null, "index": 1, "name": "bill_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "account_expense_account_id": {"type": "INT64", "comment": null, "index": 3, "name": "account_expense_account_id"}, "account_expense_class_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_expense_class_id"}, "account_expense_billable_status": {"type": "STRING", "comment": null, "index": 5, "name": "account_expense_billable_status"}, "account_expense_tax_code_id": {"type": "STRING", "comment": null, "index": 6, "name": "account_expense_tax_code_id"}, "account_expense_customer_id": {"type": "INT64", "comment": null, "index": 7, "name": "account_expense_customer_id"}, "item_expense_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "item_expense_item_id"}, "item_expense_customer_id": {"type": "INT64", "comment": null, "index": 9, "name": "item_expense_customer_id"}, "item_expense_billable_status": {"type": "INT64", "comment": null, "index": 10, "name": "item_expense_billable_status"}, "amount": {"type": "INT64", "comment": null, "index": 11, "name": "amount"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 10.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1340.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "comment": null, "index": 1, "name": "index"}, "invoice_id": {"type": "INT64", "comment": null, "index": 2, "name": "invoice_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "charge_credit_id": {"type": "INT64", "comment": null, "index": 4, "name": "charge_credit_id"}, "estimate_id": {"type": "INT64", "comment": null, "index": 5, "name": "estimate_id"}, "payment_id": {"type": "INT64", "comment": null, "index": 6, "name": "payment_id"}, "reimburse_charge_id": {"type": "INT64", "comment": null, "index": 7, "name": "reimburse_charge_id"}, "statement_charge_id": {"type": "INT64", "comment": null, "index": 8, "name": "statement_charge_id"}, "time_activity_id": {"type": "INT64", "comment": null, "index": 9, "name": "time_activity_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__refund_receipt", "comment": null, "owner": null}, "columns": {"refund_id": {"type": "INT64", "comment": null, "index": 1, "name": "refund_id"}, "balance": {"type": "INT64", "comment": null, "index": 2, "name": "balance"}, "doc_number": {"type": "STRING", "comment": null, "index": 3, "name": "doc_number"}, "total_amount": {"type": "INT64", "comment": null, "index": 4, "name": "total_amount"}, "class_id": {"type": "INT64", "comment": null, "index": 5, "name": "class_id"}, "deposit_to_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "deposit_to_account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 7, "name": "created_at"}, "department_id": {"type": "INT64", "comment": null, "index": 8, "name": "department_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 9, "name": "customer_id"}, "currency_id": {"type": "STRING", "comment": null, "index": 10, "name": "currency_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 11, "name": "exchange_rate"}, "transaction_date": {"type": "INT64", "comment": null, "index": 12, "name": "transaction_date"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 13, "name": "_fivetran_deleted"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__payment_line", "comment": null, "owner": null}, "columns": {"payment_id": {"type": "INT64", "comment": null, "index": 1, "name": "payment_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "amount": {"type": "FLOAT64", "comment": null, "index": 3, "name": "amount"}, "journal_entry_id": {"type": "INT64", "comment": null, "index": 4, "name": "journal_entry_id"}, "deposit_id": {"type": "INT64", "comment": null, "index": 5, "name": "deposit_id"}, "invoice_id": {"type": "INT64", "comment": null, "index": 6, "name": "invoice_id"}, "credit_memo_id": {"type": "INT64", "comment": null, "index": 7, "name": "credit_memo_id"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 352.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__purchase_tmp", "comment": null, "owner": null}, "columns": {"id": {"type": "INT64", "comment": null, "index": 1, "name": "id"}, "_fivetran_deleted": {"type": "BOOL", "comment": null, "index": 2, "name": "_fivetran_deleted"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "account_id": {"type": "INT64", "comment": null, "index": 4, "name": "account_id"}, "created_at": {"type": "DATETIME", "comment": null, "index": 5, "name": "created_at"}, "credit": {"type": "INT64", "comment": null, "index": 6, "name": "credit"}, "currency_id": {"type": "STRING", "comment": null, "index": 7, "name": "currency_id"}, "customer_id": {"type": "INT64", "comment": null, "index": 8, "name": "customer_id"}, "department_id": {"type": "INT64", "comment": null, "index": 9, "name": "department_id"}, "doc_number": {"type": "INT64", "comment": null, "index": 10, "name": "doc_number"}, "employee_id": {"type": "INT64", "comment": null, "index": 11, "name": "employee_id"}, "exchange_rate": {"type": "INT64", "comment": null, "index": 12, "name": "exchange_rate"}, "global_tax_calculation": {"type": "INT64", "comment": null, "index": 13, "name": "global_tax_calculation"}, "payment_method_id": {"type": "INT64", "comment": null, "index": 14, "name": "payment_method_id"}, "payment_type": {"type": "STRING", "comment": null, "index": 15, "name": "payment_type"}, "print_status": {"type": "INT64", "comment": null, "index": 16, "name": "print_status"}, "private_note": {"type": "INT64", "comment": null, "index": 17, "name": "private_note"}, "remit_to_address_id": {"type": "INT64", "comment": null, "index": 18, "name": "remit_to_address_id"}, "sync_token": {"type": "INT64", "comment": null, "index": 19, "name": "sync_token"}, "tax_code_id": {"type": "INT64", "comment": null, "index": 20, "name": "tax_code_id"}, "total_amount": {"type": "INT64", "comment": null, "index": 21, "name": "total_amount"}, "total_tax": {"type": "INT64", "comment": null, "index": 22, "name": "total_tax"}, "transaction_date": {"type": "INT64", "comment": null, "index": 23, "name": "transaction_date"}, "transaction_source": {"type": "INT64", "comment": null, "index": 24, "name": "transaction_source"}, "updated_at": {"type": "DATETIME", "comment": null, "index": 25, "name": "updated_at"}, "vendor_id": {"type": "INT64", "comment": null, "index": 26, "name": "vendor_id"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__customer", "comment": null, "owner": null}, "columns": {"customer_id": {"type": "INT64", "comment": null, "index": 1, "name": "customer_id"}, "is_active": {"type": "BOOL", "comment": null, "index": 2, "name": "is_active"}, "balance": {"type": "INT64", "comment": null, "index": 3, "name": "balance"}, "balance_with_jobs": {"type": "INT64", "comment": null, "index": 4, "name": "balance_with_jobs"}, "bill_with_parent": {"type": "BOOL", "comment": null, "index": 5, "name": "bill_with_parent"}, "company_name": {"type": "STRING", "comment": null, "index": 6, "name": "company_name"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 7, "name": "fully_qualified_name"}, "currency_id": {"type": "STRING", "comment": null, "index": 8, "name": "currency_id"}, "display_name": {"type": "STRING", "comment": null, "index": 9, "name": "display_name"}, "website": {"type": "INT64", "comment": null, "index": 10, "name": "website"}, "taxable": {"type": "BOOL", "comment": null, "index": 11, "name": "taxable"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 5.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 534.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__estimate_line", "comment": null, "owner": null}, "columns": {"estimate_id": {"type": "INT64", "comment": null, "index": 1, "name": "estimate_id"}, "index": {"type": "INT64", "comment": null, "index": 2, "name": "index"}, "description": {"type": "STRING", "comment": null, "index": 3, "name": "description"}, "discount_account_id": {"type": "INT64", "comment": null, "index": 4, "name": "discount_account_id"}, "discount_class_id": {"type": "INT64", "comment": null, "index": 5, "name": "discount_class_id"}, "sales_item_account_id": {"type": "INT64", "comment": null, "index": 6, "name": "sales_item_account_id"}, "sales_item_class_id": {"type": "INT64", "comment": null, "index": 7, "name": "sales_item_class_id"}, "sales_item_item_id": {"type": "INT64", "comment": null, "index": 8, "name": "sales_item_item_id"}, "sales_item_quantity": {"type": "INT64", "comment": null, "index": 9, "name": "sales_item_quantity"}, "item_id": {"type": "INT64", "comment": null, "index": 10, "name": "item_id"}, "quantity": {"type": "INT64", "comment": null, "index": 11, "name": "quantity"}, "account_id": {"type": "INT64", "comment": null, "index": 12, "name": "account_id"}, "amount": {"type": "INT64", "comment": null, "index": 13, "name": "amount"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 800.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "view", "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "name": "stg_quickbooks__bundle_item_tmp", "comment": null, "owner": null}, "columns": {"bundle_id": {"type": "INT64", "comment": null, "index": 1, "name": "bundle_id"}, "item_id": {"type": "INT64", "comment": null, "index": 2, "name": "item_id"}, "_fivetran_synced": {"type": "DATETIME", "comment": null, "index": 3, "name": "_fivetran_synced"}, "item_quantity": {"type": "INT64", "comment": null, "index": 4, "name": "item_quantity"}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "quickbooks", "name": "account", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "account_number": {"type": "STRING", "comment": null, "index": 3, "name": "account_number"}, "account_sub_type": {"type": "STRING", "comment": null, "index": 4, "name": "account_sub_type"}, "account_type": {"type": "STRING", "comment": null, "index": 5, "name": "account_type"}, "active": {"type": "BOOL", "comment": null, "index": 6, "name": "active"}, "balance": {"type": "FLOAT64", "comment": null, "index": 7, "name": "balance"}, "balance_with_sub_accounts": {"type": "FLOAT64", "comment": null, "index": 8, "name": "balance_with_sub_accounts"}, "classification": {"type": "STRING", "comment": null, "index": 9, "name": "classification"}, "created_at": {"type": "TIMESTAMP", "comment": null, "index": 10, "name": "created_at"}, "currency_id": {"type": "STRING", "comment": null, "index": 11, "name": "currency_id"}, "description": {"type": "STRING", "comment": null, "index": 12, "name": "description"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 13, "name": "fully_qualified_name"}, "name": {"type": "STRING", "comment": null, "index": 14, "name": "name"}, "parent_account_id": {"type": "STRING", "comment": null, "index": 15, "name": "parent_account_id"}, "sub_account": {"type": "BOOL", "comment": null, "index": 16, "name": "sub_account"}, "sync_token": {"type": "STRING", "comment": null, "index": 17, "name": "sync_token"}, "tax_code_id": {"type": "STRING", "comment": null, "index": 18, "name": "tax_code_id"}, "updated_at": {"type": "TIMESTAMP", "comment": null, "index": 19, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 26.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4756.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "source.quickbooks_source.quickbooks.account"}, "source.quickbooks_source.quickbooks.item": {"metadata": {"type": "table", "database": "dbt-package-testing", "schema": "quickbooks", "name": "item", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "comment": null, "index": 1, "name": "id"}, "_fivetran_synced": {"type": "TIMESTAMP", "comment": null, "index": 2, "name": "_fivetran_synced"}, "active": {"type": "BOOL", "comment": null, "index": 3, "name": "active"}, "asset_account_id": {"type": "STRING", "comment": null, "index": 4, "name": "asset_account_id"}, "created_at": {"type": "TIMESTAMP", "comment": null, "index": 5, "name": "created_at"}, "description": {"type": "STRING", "comment": null, "index": 6, "name": "description"}, "expense_account_id": {"type": "STRING", "comment": null, "index": 7, "name": "expense_account_id"}, "fully_qualified_name": {"type": "STRING", "comment": null, "index": 8, "name": "fully_qualified_name"}, "income_account_id": {"type": "STRING", "comment": null, "index": 9, "name": "income_account_id"}, "inventory_start_date": {"type": "DATE", "comment": null, "index": 10, "name": "inventory_start_date"}, "level": {"type": "INT64", "comment": null, "index": 11, "name": "level"}, "name": {"type": "STRING", "comment": null, "index": 12, "name": "name"}, "parent_item_id": {"type": "STRING", "comment": null, "index": 13, "name": "parent_item_id"}, "purchase_cost": {"type": "FLOAT64", "comment": null, "index": 14, "name": "purchase_cost"}, "purchase_description": {"type": "STRING", "comment": null, "index": 15, "name": "purchase_description"}, "purchase_tax_code_id": {"type": "STRING", "comment": null, "index": 16, "name": "purchase_tax_code_id"}, "purchase_tax_included": {"type": "BOOL", "comment": null, "index": 17, "name": "purchase_tax_included"}, "quantity_on_hand": {"type": "FLOAT64", "comment": null, "index": 18, "name": "quantity_on_hand"}, "sales_tax_code_id": {"type": "STRING", "comment": null, "index": 19, "name": "sales_tax_code_id"}, "sales_tax_included": {"type": "BOOL", "comment": null, "index": 20, "name": "sales_tax_included"}, "stock_keeping_unit": {"type": "STRING", "comment": null, "index": 21, "name": "stock_keeping_unit"}, "sub_item": {"type": "BOOL", "comment": null, "index": 22, "name": "sub_item"}, "sync_token": {"type": "STRING", "comment": null, "index": 23, "name": "sync_token"}, "taxable": {"type": "BOOL", "comment": null, "index": 24, "name": "taxable"}, "track_quantity_on_hand": {"type": "BOOL", "comment": null, "index": 25, "name": "track_quantity_on_hand"}, "type": {"type": "STRING", "comment": null, "index": 26, "name": "type"}, "unit_price": {"type": "FLOAT64", "comment": null, "index": 27, "name": "unit_price"}, "updated_at": {"type": "TIMESTAMP", "comment": null, "index": 28, "name": "updated_at"}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2.0, "description": "Approximate count of rows in this table", "include": true}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 150.0, "description": "Approximate size of table as reported by BigQuery", "include": true}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "description": "Indicates whether there are statistics for this table", "include": false}}, "unique_id": "source.quickbooks_source.quickbooks.item"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.2.1", "generated_at": "2022-09-26T20:48:47.111076Z", "invocation_id": "2e1a352c-57aa-4f64-a60f-68b0a866a677", "env": {}}, "nodes": {"seed.quickbooks_source_integration_tests.account_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_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": "seed.quickbooks_source_integration_tests.account_data"}, "seed.quickbooks_source_integration_tests.address_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "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.quickbooks_source_integration_tests.address_data"}, "seed.quickbooks_source_integration_tests.bill_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bill_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}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "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": "seed.quickbooks_source_integration_tests.bill_data"}, "seed.quickbooks_source_integration_tests.bill_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bill_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "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.quickbooks_source_integration_tests.bill_line_data"}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bill_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_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.quickbooks_source_integration_tests.bill_linked_txn_data"}, "seed.quickbooks_source_integration_tests.bill_payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bill_payment_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}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "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": "seed.quickbooks_source_integration_tests.bill_payment_data"}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bill_payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "double precision", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_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.quickbooks_source_integration_tests.bill_payment_line_data"}, "seed.quickbooks_source_integration_tests.bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_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": "seed.quickbooks_source_integration_tests.bundle_data"}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "bundle_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "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.quickbooks_source_integration_tests.bundle_item_data"}, "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "credit_card_payment_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "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.quickbooks_source_integration_tests.credit_card_payment_txn_data"}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "credit_memo_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}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_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": "seed.quickbooks_source_integration_tests.credit_memo_data"}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "credit_memo_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_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": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, "seed.quickbooks_source_integration_tests.customer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "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.quickbooks_source_integration_tests.customer_data"}, "seed.quickbooks_source_integration_tests.department_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_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": "seed.quickbooks_source_integration_tests.department_data"}, "seed.quickbooks_source_integration_tests.deposit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "deposit_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}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_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": "seed.quickbooks_source_integration_tests.deposit_data"}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "deposit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "integer", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "integer", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_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.quickbooks_source_integration_tests.deposit_line_data"}, "seed.quickbooks_source_integration_tests.estimate_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "estimate_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}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_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": "seed.quickbooks_source_integration_tests.estimate_data"}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "estimate_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_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.quickbooks_source_integration_tests.estimate_line_data"}, "seed.quickbooks_source_integration_tests.invoice_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "invoice_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}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_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": "seed.quickbooks_source_integration_tests.invoice_data"}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "invoice_line_bundle_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_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.quickbooks_source_integration_tests.invoice_line_bundle_data"}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "invoice_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_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.quickbooks_source_integration_tests.invoice_line_data"}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "invoice_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_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.quickbooks_source_integration_tests.invoice_linked_txn_data"}, "seed.quickbooks_source_integration_tests.item_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_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": "seed.quickbooks_source_integration_tests.item_data"}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "journal_entry_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}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_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": "seed.quickbooks_source_integration_tests.journal_entry_data"}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "journal_entry_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "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": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, "seed.quickbooks_source_integration_tests.payment_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "payment_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}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_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": "seed.quickbooks_source_integration_tests.payment_data"}, "seed.quickbooks_source_integration_tests.payment_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "payment_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_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.quickbooks_source_integration_tests.payment_line_data"}, "seed.quickbooks_source_integration_tests.purchase_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "purchase_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}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "integer", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "integer", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "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": "seed.quickbooks_source_integration_tests.purchase_data"}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "purchase_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "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.quickbooks_source_integration_tests.purchase_line_data"}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "purchase_order_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}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "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": "seed.quickbooks_source_integration_tests.purchase_order_data"}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "purchase_order_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "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.quickbooks_source_integration_tests.purchase_order_line_data"}, "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "purchase_order_linked_txn_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_id": {"type": "integer", "index": 4, "name": "bill_id", "comment": null}, "purchase_id": {"type": "integer", "index": 5, "name": "purchase_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 6, "name": "vendor_credit_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.quickbooks_source_integration_tests.purchase_order_linked_txn_data"}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "refund_receipt_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}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "integer", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_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": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "refund_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_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": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "sales_receipt_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}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "integer", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_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": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "sales_receipt_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_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": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, "seed.quickbooks_source_integration_tests.transfer_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "transfer_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}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_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": "seed.quickbooks_source_integration_tests.transfer_data"}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "vendor_credit_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}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "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": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "vendor_credit_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "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.quickbooks_source_integration_tests.vendor_credit_line_data"}, "seed.quickbooks_source_integration_tests.vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests", "name": "vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_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.quickbooks_source_integration_tests.vendor_data"}, "model.quickbooks_source.stg_quickbooks__account": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "character varying", "index": 1, "name": "account_id", "comment": null}, "account_number": {"type": "character varying", "index": 2, "name": "account_number", "comment": null}, "is_sub_account": {"type": "boolean", "index": 3, "name": "is_sub_account", "comment": null}, "parent_account_id": {"type": "character varying", "index": 4, "name": "parent_account_id", "comment": null}, "name": {"type": "text", "index": 5, "name": "name", "comment": null}, "account_type": {"type": "text", "index": 6, "name": "account_type", "comment": null}, "account_sub_type": {"type": "text", "index": 7, "name": "account_sub_type", "comment": null}, "classification": {"type": "text", "index": 8, "name": "classification", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 10, "name": "balance_with_sub_accounts", "comment": null}, "is_active": {"type": "boolean", "index": 11, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 12, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 13, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 14, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 15, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_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.quickbooks_source.stg_quickbooks__account"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__account_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "account_sub_type": {"type": "text", "index": 4, "name": "account_sub_type", "comment": null}, "account_type": {"type": "text", "index": 5, "name": "account_type", "comment": null}, "active": {"type": "boolean", "index": 6, "name": "active", "comment": null}, "balance": {"type": "integer", "index": 7, "name": "balance", "comment": null}, "balance_with_sub_accounts": {"type": "integer", "index": 8, "name": "balance_with_sub_accounts", "comment": null}, "classification": {"type": "text", "index": 9, "name": "classification", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "description": {"type": "integer", "index": 12, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 13, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "parent_account_id": {"type": "integer", "index": 15, "name": "parent_account_id", "comment": null}, "sub_account": {"type": "boolean", "index": 16, "name": "sub_account", "comment": null}, "sync_token": {"type": "integer", "index": 17, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 18, "name": "tax_code_id", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_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.quickbooks_source.stg_quickbooks__account_tmp"}, "model.quickbooks_source.stg_quickbooks__address": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"address_id": {"type": "character varying", "index": 1, "name": "address_id", "comment": null}, "city": {"type": "text", "index": 2, "name": "city", "comment": null}, "country": {"type": "text", "index": 3, "name": "country", "comment": null}, "address_1": {"type": "text", "index": 4, "name": "address_1", "comment": null}, "address_2": {"type": "text", "index": 5, "name": "address_2", "comment": null}, "postal_code": {"type": "integer", "index": 6, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "city": {"type": "text", "index": 3, "name": "city", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "country_sub_division_code": {"type": "text", "index": 5, "name": "country_sub_division_code", "comment": null}, "latitude": {"type": "integer", "index": 6, "name": "latitude", "comment": null}, "line_1": {"type": "text", "index": 7, "name": "line_1", "comment": null}, "line_2": {"type": "text", "index": 8, "name": "line_2", "comment": null}, "line_3": {"type": "integer", "index": 9, "name": "line_3", "comment": null}, "line_4": {"type": "integer", "index": 10, "name": "line_4", "comment": null}, "line_5": {"type": "integer", "index": 11, "name": "line_5", "comment": null}, "longitude": {"type": "integer", "index": 12, "name": "longitude", "comment": null}, "postal_code": {"type": "integer", "index": 13, "name": "postal_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, "model.quickbooks_source.stg_quickbooks__bill": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "due_date_at": {"type": "date", "index": 6, "name": "due_date_at", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "payable_account_id": {"type": "character varying", "index": 9, "name": "payable_account_id", "comment": null}, "total_amount": {"type": "integer", "index": 10, "name": "total_amount", "comment": null}, "vendor_id": {"type": "character varying", "index": 11, "name": "vendor_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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.quickbooks_source.stg_quickbooks__bill"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_customer_id": {"type": "character varying", "index": 7, "name": "account_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_customer_id": {"type": "character varying", "index": 9, "name": "item_expense_customer_id", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 10, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "double precision", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "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.quickbooks_source.stg_quickbooks__bill_line"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "character varying", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "bill_payment_id": {"type": "character varying", "index": 3, "name": "bill_payment_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.quickbooks_source.stg_quickbooks__bill_linked_txn"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_id": {"type": "integer", "index": 1, "name": "bill_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_payment_id": {"type": "integer", "index": 4, "name": "bill_payment_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.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "character varying", "index": 1, "name": "bill_payment_id", "comment": null}, "check_bank_account_id": {"type": "character varying", "index": 2, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 3, "name": "check_print_status", "comment": null}, "credit_card_account_id": {"type": "character varying", "index": 4, "name": "credit_card_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 5, "name": "exchange_rate", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "pay_type": {"type": "text", "index": 8, "name": "pay_type", "comment": null}, "total_amount": {"type": "integer", "index": 9, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "character varying", "index": 11, "name": "vendor_id", "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.quickbooks_source.stg_quickbooks__bill_payment"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "character varying", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "bill_id": {"type": "character varying", "index": 4, "name": "bill_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 6, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 7, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 8, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 9, "name": "vendor_credit_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.quickbooks_source.stg_quickbooks__bill_payment_line"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bill_payment_id": {"type": "integer", "index": 1, "name": "bill_payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bill_id": {"type": "double precision", "index": 5, "name": "bill_id", "comment": null}, "check_id": {"type": "integer", "index": 6, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 7, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 8, "name": "credit_card_credit_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 11, "name": "journal_entry_id", "comment": null}, "linked_bill_payment_id": {"type": "integer", "index": 12, "name": "linked_bill_payment_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 13, "name": "vendor_credit_id", "comment": null}, "bill_payment_credit_card_id": {"type": "integer", "index": 14, "name": "bill_payment_credit_card_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.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_payment_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}, "check_bank_account_id": {"type": "integer", "index": 4, "name": "check_bank_account_id", "comment": null}, "check_print_status": {"type": "text", "index": 5, "name": "check_print_status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 7, "name": "credit_card_account_id", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "pay_type": {"type": "text", "index": 12, "name": "pay_type", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "integer", "index": 14, "name": "private_note", "comment": null}, "process_bill_payment": {"type": "integer", "index": 15, "name": "process_bill_payment", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "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.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bill_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}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "date", "index": 8, "name": "doc_number", "comment": null}, "due_date": {"type": "date", "index": 9, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 10, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 12, "name": "home_balance", "comment": null}, "payable_account_id": {"type": "integer", "index": 13, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 14, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 15, "name": "sales_term_id", "comment": null}, "sync_token": {"type": "integer", "index": 16, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 17, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 18, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 20, "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.quickbooks_source.stg_quickbooks__bill_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "character varying", "index": 1, "name": "bundle_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "fully_qualified_name": {"type": "text", "index": 4, "name": "fully_qualified_name", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 5, "name": "updated_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.quickbooks_source.stg_quickbooks__bundle"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "character varying", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "character varying", "index": 2, "name": "item_id", "comment": null}, "item_quantity": {"type": "integer", "index": 3, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"bundle_id": {"type": "integer", "index": 1, "name": "bundle_id", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "item_quantity": {"type": "integer", "index": 4, "name": "item_quantity", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "fully_qualified_name": {"type": "text", "index": 6, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "print_grouped_items": {"type": "boolean", "index": 8, "name": "print_grouped_items", "comment": null}, "purchase_cost": {"type": "integer", "index": 9, "name": "purchase_cost", "comment": null}, "sync_token": {"type": "integer", "index": 10, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}, "unit_price": {"type": "integer", "index": 12, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 13, "name": "updated_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.quickbooks_source.stg_quickbooks__bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_card_payment_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_card_payment_id": {"type": "character varying", "index": 1, "name": "credit_card_payment_id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}, "is_most_recent_record": {"type": "boolean", "index": 10, "name": "is_most_recent_record", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn"}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "amount": {"type": "double precision", "index": 2, "name": "amount", "comment": null}, "bank_account_id": {"type": "integer", "index": 3, "name": "bank_account_id", "comment": null}, "credit_card_account_id": {"type": "integer", "index": 4, "name": "credit_card_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 6, "name": "updated_at", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "transaction_date": {"type": "date", "index": 8, "name": "transaction_date", "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.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "character varying", "index": 1, "name": "credit_memo_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 8, "name": "customer_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "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.quickbooks_source.stg_quickbooks__credit_memo"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "character varying", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 6, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 7, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "character varying", "index": 8, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 9, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "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.quickbooks_source.stg_quickbooks__credit_memo_line"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"credit_memo_id": {"type": "integer", "index": 1, "name": "credit_memo_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "double precision", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_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.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__credit_memo_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}, "apply_tax_after_discount": {"type": "boolean", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 11, "name": "custom_p_o_number", "comment": null}, "customer_id": {"type": "integer", "index": 12, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 13, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 15, "name": "doc_number", "comment": null}, "email_status": {"type": "text", "index": 16, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 17, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 18, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 19, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 20, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "print_status": {"type": "text", "index": 22, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 23, "name": "private_note", "comment": null}, "remaining_credit": {"type": "integer", "index": 24, "name": "remaining_credit", "comment": null}, "sales_term_id": {"type": "integer", "index": 25, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 26, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 27, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 28, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 29, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 30, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 31, "name": "updated_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.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, "model.quickbooks_source.stg_quickbooks__customer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "character varying", "index": 1, "name": "customer_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 3, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 4, "name": "balance_with_jobs", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 5, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "fully_qualified_name": {"type": "text", "index": 7, "name": "fully_qualified_name", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "website": {"type": "integer", "index": 10, "name": "website", "comment": null}, "taxable": {"type": "boolean", "index": 11, "name": "taxable", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__customer_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "alternate_phone_number": {"type": "integer", "index": 4, "name": "alternate_phone_number", "comment": null}, "ar_account_id": {"type": "integer", "index": 5, "name": "ar_account_id", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "balance_with_jobs": {"type": "integer", "index": 7, "name": "balance_with_jobs", "comment": null}, "bill_address_id": {"type": "integer", "index": 8, "name": "bill_address_id", "comment": null}, "bill_with_parent": {"type": "boolean", "index": 9, "name": "bill_with_parent", "comment": null}, "company_name": {"type": "text", "index": 10, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 11, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 12, "name": "currency_id", "comment": null}, "default_tax_code_id": {"type": "integer", "index": 13, "name": "default_tax_code_id", "comment": null}, "display_name": {"type": "text", "index": 14, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 15, "name": "email", "comment": null}, "family_name": {"type": "text", "index": 16, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 17, "name": "fax_number", "comment": null}, "fully_qualified_name": {"type": "text", "index": 18, "name": "fully_qualified_name", "comment": null}, "given_name": {"type": "text", "index": 19, "name": "given_name", "comment": null}, "job": {"type": "boolean", "index": 20, "name": "job", "comment": null}, "level": {"type": "integer", "index": 21, "name": "level", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "mobile_number": {"type": "integer", "index": 23, "name": "mobile_number", "comment": null}, "notes": {"type": "integer", "index": 24, "name": "notes", "comment": null}, "open_balance_date": {"type": "integer", "index": 25, "name": "open_balance_date", "comment": null}, "parent_customer_id": {"type": "integer", "index": 26, "name": "parent_customer_id", "comment": null}, "payment_method_id": {"type": "integer", "index": 27, "name": "payment_method_id", "comment": null}, "phone_number": {"type": "integer", "index": 28, "name": "phone_number", "comment": null}, "preferred_delivery_method": {"type": "text", "index": 29, "name": "preferred_delivery_method", "comment": null}, "print_on_check_name": {"type": "text", "index": 30, "name": "print_on_check_name", "comment": null}, "resale_number": {"type": "integer", "index": 31, "name": "resale_number", "comment": null}, "sales_term_id": {"type": "integer", "index": 32, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 33, "name": "shipping_address_id", "comment": null}, "suffix": {"type": "integer", "index": 34, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 35, "name": "sync_token", "comment": null}, "tax_exemption_reason_id": {"type": "integer", "index": 36, "name": "tax_exemption_reason_id", "comment": null}, "taxable": {"type": "boolean", "index": 37, "name": "taxable", "comment": null}, "title": {"type": "integer", "index": 38, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 39, "name": "updated_at", "comment": null}, "website": {"type": "integer", "index": 40, "name": "website", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, "model.quickbooks_source.stg_quickbooks__department": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 4, "name": "updated_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "is_sub_department": {"type": "boolean", "index": 7, "name": "is_sub_department", "comment": null}, "parent_department_id": {"type": "integer", "index": 8, "name": "parent_department_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.quickbooks_source.stg_quickbooks__department"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__department_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "fully_qualified_name": {"type": "text", "index": 5, "name": "fully_qualified_name", "comment": null}, "name": {"type": "text", "index": 6, "name": "name", "comment": null}, "parent_department_id": {"type": "integer", "index": 7, "name": "parent_department_id", "comment": null}, "sub_department": {"type": "boolean", "index": 8, "name": "sub_department", "comment": null}, "sync_token": {"type": "integer", "index": 9, "name": "sync_token", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 10, "name": "updated_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.quickbooks_source.stg_quickbooks__department_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "character varying", "index": 1, "name": "deposit_id", "comment": null}, "account_id": {"type": "character varying", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 5, "name": "department_id", "comment": null}, "total_amount": {"type": "integer", "index": 6, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 7, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "integer", "index": 8, "name": "transaction_status", "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.quickbooks_source.stg_quickbooks__deposit"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "character varying", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "deposit_account_id": {"type": "character varying", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_class_id": {"type": "integer", "index": 6, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "character varying", "index": 7, "name": "deposit_customer_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.quickbooks_source.stg_quickbooks__deposit_line"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"deposit_id": {"type": "integer", "index": 1, "name": "deposit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "deposit_account_id": {"type": "integer", "index": 5, "name": "deposit_account_id", "comment": null}, "deposit_check_number": {"type": "integer", "index": 6, "name": "deposit_check_number", "comment": null}, "deposit_class_id": {"type": "integer", "index": 7, "name": "deposit_class_id", "comment": null}, "deposit_customer_id": {"type": "integer", "index": 8, "name": "deposit_customer_id", "comment": null}, "deposit_payment_method_id": {"type": "integer", "index": 9, "name": "deposit_payment_method_id", "comment": null}, "deposit_tax_applicable_on": {"type": "integer", "index": 10, "name": "deposit_tax_applicable_on", "comment": null}, "deposit_tax_code_id": {"type": "integer", "index": 11, "name": "deposit_tax_code_id", "comment": null}, "deposit_transaction_type": {"type": "integer", "index": 12, "name": "deposit_transaction_type", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "detail_type": {"type": "text", "index": 14, "name": "detail_type", "comment": null}, "expense_id": {"type": "integer", "index": 15, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 16, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 17, "name": "journal_entry_id", "comment": null}, "payment_id": {"type": "integer", "index": 18, "name": "payment_id", "comment": null}, "purchase_id": {"type": "integer", "index": 19, "name": "purchase_id", "comment": null}, "refund_receipt_id": {"type": "integer", "index": 20, "name": "refund_receipt_id", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 21, "name": "sales_receipt_id", "comment": null}, "transfer_id": {"type": "integer", "index": 22, "name": "transfer_id", "comment": null}, "bill_id": {"type": "integer", "index": 23, "name": "bill_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 24, "name": "vendor_credit_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.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__deposit_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}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "cash_back_account_id": {"type": "integer", "index": 5, "name": "cash_back_account_id", "comment": null}, "cash_back_amount": {"type": "integer", "index": 6, "name": "cash_back_amount", "comment": null}, "cash_back_memo": {"type": "integer", "index": 7, "name": "cash_back_memo", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 9, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 11, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 12, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 13, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 14, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 15, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 16, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 17, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 18, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 19, "name": "updated_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.quickbooks_source.stg_quickbooks__deposit_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "character varying", "index": 1, "name": "estimate_id", "comment": null}, "class_id": {"type": "integer", "index": 2, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "due_date": {"type": "integer", "index": 7, "name": "due_date", "comment": null}, "total_amount": {"type": "double precision", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 10, "name": "transaction_status", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 11, "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.quickbooks_source.stg_quickbooks__estimate"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "character varying", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "description": {"type": "text", "index": 3, "name": "description", "comment": null}, "discount_account_id": {"type": "integer", "index": 4, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 5, "name": "discount_class_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 7, "name": "sales_item_class_id", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 8, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "item_id": {"type": "integer", "index": 10, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 11, "name": "quantity", "comment": null}, "account_id": {"type": "integer", "index": 12, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 13, "name": "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.quickbooks_source.stg_quickbooks__estimate_line"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"estimate_id": {"type": "integer", "index": 1, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_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.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__estimate_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}, "accepted_by": {"type": "integer", "index": 4, "name": "accepted_by", "comment": null}, "accepted_date": {"type": "integer", "index": 5, "name": "accepted_date", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 6, "name": "apply_tax_after_discount", "comment": null}, "bill_email": {"type": "text", "index": 7, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 8, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 10, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 11, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 12, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 13, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 14, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 15, "name": "customer_memo", "comment": null}, "delivery_type": {"type": "integer", "index": 16, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 17, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 18, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 19, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 20, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 21, "name": "exchange_rate", "comment": null}, "expiration_date": {"type": "integer", "index": 22, "name": "expiration_date", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 23, "name": "global_tax_calculation", "comment": null}, "home_total_amount": {"type": "integer", "index": 24, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 25, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 26, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 27, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 28, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 29, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 30, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 31, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 32, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 33, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 34, "name": "transaction_date", "comment": null}, "transaction_status": {"type": "text", "index": 35, "name": "transaction_status", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 36, "name": "updated_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.quickbooks_source.stg_quickbooks__estimate_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "index": 7, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 9, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 10, "name": "customer_id", "comment": null}, "billing_address_id": {"type": "character varying", "index": 11, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 12, "name": "shipping_address_id", "comment": null}, "delivery_type": {"type": "text", "index": 13, "name": "delivery_type", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 14, "name": "due_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 15, "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.quickbooks_source.stg_quickbooks__invoice"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 4, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 5, "name": "sales_item_item_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 6, "name": "sales_item_class_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 7, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 8, "name": "sales_item_unit_price", "comment": null}, "discount_account_id": {"type": "integer", "index": 9, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 10, "name": "discount_class_id", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "quantity": {"type": "integer", "index": 12, "name": "quantity", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 13, "name": "bundle_quantity", "comment": null}, "bundle_id": {"type": "character varying", "index": 14, "name": "bundle_id", "comment": null}, "account_id": {"type": "character varying", "index": 15, "name": "account_id", "comment": null}, "item_id": {"type": "character varying", "index": 16, "name": "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.quickbooks_source.stg_quickbooks__invoice_line"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "class_id": {"type": "integer", "index": 3, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 6, "name": "sales_item_item_id", "comment": null}, "item_id": {"type": "character varying", "index": 7, "name": "item_id", "comment": null}, "quantity": {"type": "double precision", "index": 8, "name": "quantity", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "account_id": {"type": "character varying", "index": 10, "name": "account_id", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "invoice_line_index": {"type": "integer", "index": 12, "name": "invoice_line_index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_bundle_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "double precision", "index": 5, "name": "amount", "comment": null}, "class_id": {"type": "integer", "index": 6, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "discount_amount": {"type": "integer", "index": 8, "name": "discount_amount", "comment": null}, "discount_rate": {"type": "integer", "index": 9, "name": "discount_rate", "comment": null}, "invoice_line_index": {"type": "integer", "index": 10, "name": "invoice_line_index", "comment": null}, "item_id": {"type": "integer", "index": 11, "name": "item_id", "comment": null}, "line_num": {"type": "integer", "index": 12, "name": "line_num", "comment": null}, "quantity": {"type": "double precision", "index": 13, "name": "quantity", "comment": null}, "service_date": {"type": "integer", "index": 14, "name": "service_date", "comment": null}, "tax_code_id": {"type": "text", "index": 15, "name": "tax_code_id", "comment": null}, "unit_price": {"type": "integer", "index": 16, "name": "unit_price", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 17, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 18, "name": "sales_item_quantity", "comment": null}, "sales_item_tax_code_id": {"type": "integer", "index": 19, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 20, "name": "sales_item_account_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.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "double precision", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "double precision", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_item_id", "comment": null}, "item_id": {"type": "integer", "index": 25, "name": "item_id", "comment": null}, "quantity": {"type": "integer", "index": 26, "name": "quantity", "comment": null}, "tax_code_id": {"type": "integer", "index": 27, "name": "tax_code_id", "comment": null}, "account_id": {"type": "integer", "index": 28, "name": "account_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.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"invoice_id": {"type": "character varying", "index": 1, "name": "invoice_id", "comment": null}, "payment_id": {"type": "character varying", "index": 2, "name": "payment_id", "comment": null}, "estimate_id": {"type": "character varying", "index": 3, "name": "estimate_id", "comment": null}, "index": {"type": "integer", "index": 4, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "invoice_id": {"type": "integer", "index": 2, "name": "invoice_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "charge_credit_id": {"type": "integer", "index": 4, "name": "charge_credit_id", "comment": null}, "estimate_id": {"type": "integer", "index": 5, "name": "estimate_id", "comment": null}, "payment_id": {"type": "integer", "index": 6, "name": "payment_id", "comment": null}, "reimburse_charge_id": {"type": "integer", "index": 7, "name": "reimburse_charge_id", "comment": null}, "statement_charge_id": {"type": "integer", "index": 8, "name": "statement_charge_id", "comment": null}, "time_activity_id": {"type": "integer", "index": 9, "name": "time_activity_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.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__invoice_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}, "allow_ipnpayment": {"type": "boolean", "index": 4, "name": "allow_ipnpayment", "comment": null}, "allow_online_achpayment": {"type": "boolean", "index": 5, "name": "allow_online_achpayment", "comment": null}, "allow_online_credit_card_payment": {"type": "boolean", "index": 6, "name": "allow_online_credit_card_payment", "comment": null}, "allow_online_payment": {"type": "boolean", "index": 7, "name": "allow_online_payment", "comment": null}, "apply_tax_after_discount": {"type": "boolean", "index": 8, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 9, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 10, "name": "billing_address_id", "comment": null}, "billing_bcc_email": {"type": "text", "index": 11, "name": "billing_bcc_email", "comment": null}, "billing_cc_email": {"type": "integer", "index": 12, "name": "billing_cc_email", "comment": null}, "billing_email": {"type": "text", "index": 13, "name": "billing_email", "comment": null}, "class_id": {"type": "integer", "index": 14, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 15, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 16, "name": "currency_id", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 17, "name": "custom_p_o_number", "comment": null}, "custom_sales_rep": {"type": "integer", "index": 18, "name": "custom_sales_rep", "comment": null}, "customer_id": {"type": "integer", "index": 19, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 20, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "timestamp without time zone", "index": 21, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "text", "index": 22, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 23, "name": "department_id", "comment": null}, "deposit": {"type": "integer", "index": 24, "name": "deposit", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 25, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 26, "name": "doc_number", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 27, "name": "due_date", "comment": null}, "email_status": {"type": "text", "index": 28, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 29, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 30, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 31, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 32, "name": "home_total_amount", "comment": null}, "print_status": {"type": "text", "index": 33, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 34, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 35, "name": "sales_term_id", "comment": null}, "ship_date": {"type": "integer", "index": 36, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 37, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 38, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 39, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 40, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 41, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 42, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 43, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 44, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 45, "name": "updated_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.quickbooks_source.stg_quickbooks__invoice_tmp"}, "model.quickbooks_source.stg_quickbooks__item": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "character varying", "index": 1, "name": "item_id", "comment": null}, "is_active": {"type": "boolean", "index": 2, "name": "is_active", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "income_account_id": {"type": "character varying", "index": 4, "name": "income_account_id", "comment": null}, "asset_account_id": {"type": "character varying", "index": 5, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "character varying", "index": 6, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "purchase_cost": {"type": "integer", "index": 8, "name": "purchase_cost", "comment": null}, "taxable": {"type": "boolean", "index": 9, "name": "taxable", "comment": null}, "type": {"type": "text", "index": 10, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 11, "name": "unit_price", "comment": null}, "inventory_start_date": {"type": "integer", "index": 12, "name": "inventory_start_date", "comment": null}, "parent_item_id": {"type": "character varying", "index": 13, "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.quickbooks_source.stg_quickbooks__item"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__item_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "active": {"type": "boolean", "index": 3, "name": "active", "comment": null}, "asset_account_id": {"type": "integer", "index": 4, "name": "asset_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "description": {"type": "integer", "index": 6, "name": "description", "comment": null}, "expense_account_id": {"type": "integer", "index": 7, "name": "expense_account_id", "comment": null}, "fully_qualified_name": {"type": "text", "index": 8, "name": "fully_qualified_name", "comment": null}, "income_account_id": {"type": "integer", "index": 9, "name": "income_account_id", "comment": null}, "inventory_start_date": {"type": "integer", "index": 10, "name": "inventory_start_date", "comment": null}, "level": {"type": "integer", "index": 11, "name": "level", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "parent_item_id": {"type": "integer", "index": 13, "name": "parent_item_id", "comment": null}, "purchase_cost": {"type": "integer", "index": 14, "name": "purchase_cost", "comment": null}, "purchase_description": {"type": "integer", "index": 15, "name": "purchase_description", "comment": null}, "purchase_tax_code_id": {"type": "integer", "index": 16, "name": "purchase_tax_code_id", "comment": null}, "purchase_tax_included": {"type": "integer", "index": 17, "name": "purchase_tax_included", "comment": null}, "quantity_on_hand": {"type": "integer", "index": 18, "name": "quantity_on_hand", "comment": null}, "sales_tax_code_id": {"type": "integer", "index": 19, "name": "sales_tax_code_id", "comment": null}, "sales_tax_included": {"type": "integer", "index": 20, "name": "sales_tax_included", "comment": null}, "stock_keeping_unit": {"type": "integer", "index": 21, "name": "stock_keeping_unit", "comment": null}, "sub_item": {"type": "integer", "index": 22, "name": "sub_item", "comment": null}, "sync_token": {"type": "integer", "index": 23, "name": "sync_token", "comment": null}, "taxable": {"type": "boolean", "index": 24, "name": "taxable", "comment": null}, "track_quantity_on_hand": {"type": "boolean", "index": 25, "name": "track_quantity_on_hand", "comment": null}, "type": {"type": "text", "index": 26, "name": "type", "comment": null}, "unit_price": {"type": "integer", "index": 27, "name": "unit_price", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 28, "name": "updated_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.quickbooks_source.stg_quickbooks__item_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "character varying", "index": 1, "name": "journal_entry_id", "comment": null}, "is_adjustment": {"type": "boolean", "index": 2, "name": "is_adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "doc_number": {"type": "character varying", "index": 5, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 9, "name": "transaction_date", "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.quickbooks_source.stg_quickbooks__journal_entry"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"journal_entry_id": {"type": "character varying", "index": 1, "name": "journal_entry_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_id": {"type": "character varying", "index": 3, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "customer_id": {"type": "character varying", "index": 5, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "description": {"type": "text", "index": 8, "name": "description", "comment": null}, "billable_status": {"type": "integer", "index": 9, "name": "billable_status", "comment": null}, "posting_type": {"type": "text", "index": 10, "name": "posting_type", "comment": null}, "vendor_id": {"type": "character varying", "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.quickbooks_source.stg_quickbooks__journal_entry_line"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "journal_entry_id": {"type": "integer", "index": 2, "name": "journal_entry_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "amount": {"type": "integer", "index": 5, "name": "amount", "comment": null}, "billable_status": {"type": "integer", "index": 6, "name": "billable_status", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "description": {"type": "text", "index": 10, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 11, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 12, "name": "description_tax_code_id", "comment": null}, "employee_id": {"type": "integer", "index": 13, "name": "employee_id", "comment": null}, "posting_type": {"type": "text", "index": 14, "name": "posting_type", "comment": null}, "tax_amount": {"type": "integer", "index": 15, "name": "tax_amount", "comment": null}, "tax_applicable_on": {"type": "integer", "index": 16, "name": "tax_applicable_on", "comment": null}, "tax_code_id": {"type": "integer", "index": 17, "name": "tax_code_id", "comment": null}, "vendor_id": {"type": "integer", "index": 18, "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.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__journal_entry_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}, "adjustment": {"type": "boolean", "index": 4, "name": "adjustment", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "doc_number": {"type": "text", "index": 7, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 8, "name": "exchange_rate", "comment": null}, "home_total_amount": {"type": "integer", "index": 9, "name": "home_total_amount", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 11, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 12, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 13, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 14, "name": "total_tax", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_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.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, "model.quickbooks_source.stg_quickbooks__payment": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "character varying", "index": 1, "name": "payment_id", "comment": null}, "unapplied_amount": {"type": "integer", "index": 2, "name": "unapplied_amount", "comment": null}, "total_amount": {"type": "double precision", "index": 3, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 4, "name": "currency_id", "comment": null}, "receivable_account_id": {"type": "character varying", "index": 5, "name": "receivable_account_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "index": 6, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 7, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 8, "name": "transaction_date", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "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.quickbooks_source.stg_quickbooks__payment"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"payment_id": {"type": "character varying", "index": 1, "name": "payment_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "double precision", "index": 3, "name": "amount", "comment": null}, "journal_entry_id": {"type": "integer", "index": 4, "name": "journal_entry_id", "comment": null}, "deposit_id": {"type": "integer", "index": 5, "name": "deposit_id", "comment": null}, "invoice_id": {"type": "character varying", "index": 6, "name": "invoice_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 7, "name": "credit_memo_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.quickbooks_source.stg_quickbooks__payment_line"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "payment_id": {"type": "integer", "index": 2, "name": "payment_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "double precision", "index": 4, "name": "amount", "comment": null}, "check_id": {"type": "integer", "index": 5, "name": "check_id", "comment": null}, "credit_card_charge_id": {"type": "integer", "index": 6, "name": "credit_card_charge_id", "comment": null}, "credit_card_credit_id": {"type": "integer", "index": 7, "name": "credit_card_credit_id", "comment": null}, "credit_memo_id": {"type": "integer", "index": 8, "name": "credit_memo_id", "comment": null}, "deposit_id": {"type": "integer", "index": 9, "name": "deposit_id", "comment": null}, "expense_id": {"type": "integer", "index": 10, "name": "expense_id", "comment": null}, "invoice_id": {"type": "integer", "index": 11, "name": "invoice_id", "comment": null}, "journal_entry_id": {"type": "integer", "index": 12, "name": "journal_entry_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.quickbooks_source.stg_quickbooks__payment_line_tmp"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__payment_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}, "created_at": {"type": "timestamp without time zone", "index": 4, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 5, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 6, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 7, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 8, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 9, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 10, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 11, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 12, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 13, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 14, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 15, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 16, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 17, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 18, "name": "customer_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 19, "name": "deposit_to_account_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 20, "name": "exchange_rate", "comment": null}, "payment_method_id": {"type": "integer", "index": 21, "name": "payment_method_id", "comment": null}, "private_note": {"type": "text", "index": 22, "name": "private_note", "comment": null}, "process_payment": {"type": "boolean", "index": 23, "name": "process_payment", "comment": null}, "receivable_account_id": {"type": "integer", "index": 24, "name": "receivable_account_id", "comment": null}, "reference_number": {"type": "integer", "index": 25, "name": "reference_number", "comment": null}, "sync_token": {"type": "integer", "index": 26, "name": "sync_token", "comment": null}, "total_amount": {"type": "double precision", "index": 27, "name": "total_amount", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 28, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 29, "name": "transaction_source", "comment": null}, "transaction_status": {"type": "integer", "index": 30, "name": "transaction_status", "comment": null}, "unapplied_amount": {"type": "integer", "index": 31, "name": "unapplied_amount", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 32, "name": "updated_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.quickbooks_source.stg_quickbooks__payment_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "character varying", "index": 1, "name": "purchase_id", "comment": null}, "account_id": {"type": "character varying", "index": 2, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 3, "name": "created_at", "comment": null}, "doc_number": {"type": "character varying", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "credit": {"type": "integer", "index": 7, "name": "credit", "comment": null}, "total_amount": {"type": "integer", "index": 8, "name": "total_amount", "comment": null}, "payment_type": {"type": "text", "index": 9, "name": "payment_type", "comment": null}, "department_id": {"type": "integer", "index": 10, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 11, "name": "customer_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 12, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "integer", "index": 13, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 14, "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.quickbooks_source.stg_quickbooks__purchase"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_id": {"type": "character varying", "index": 1, "name": "purchase_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "character varying", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "character varying", "index": 10, "name": "item_expense_customer_id", "comment": null}, "amount": {"type": "integer", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "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.quickbooks_source.stg_quickbooks__purchase_line"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_id": {"type": "integer", "index": 2, "name": "purchase_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "character varying", "index": 1, "name": "purchase_order_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 2, "name": "created_at", "comment": null}, "custom_po_number": {"type": "character varying", "index": 3, "name": "custom_po_number", "comment": null}, "doc_number": {"type": "character varying", "index": 4, "name": "doc_number", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "total_amount": {"type": "double precision", "index": 7, "name": "total_amount", "comment": null}, "payable_account_id": {"type": "character varying", "index": 8, "name": "payable_account_id", "comment": null}, "vendor_id": {"type": "character varying", "index": 9, "name": "vendor_id", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 10, "name": "transaction_date", "comment": null}, "status": {"type": "text", "index": 11, "name": "status", "comment": null}, "due_date": {"type": "integer", "index": 12, "name": "due_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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.quickbooks_source.stg_quickbooks__purchase_order"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "character varying", "index": 1, "name": "purchase_order_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 3, "name": "account_expense_account_id", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 4, "name": "account_expense_class_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_customer_id": {"type": "character varying", "index": 6, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 7, "name": "account_expense_tax_code_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "index": 8, "name": "item_expense_item_id", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 9, "name": "item_expense_billable_status", "comment": null}, "item_expense_customer_id": {"type": "character varying", "index": 10, "name": "item_expense_customer_id", "comment": null}, "amount": {"type": "double precision", "index": 11, "name": "amount", "comment": null}, "description": {"type": "text", "index": 12, "name": "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.quickbooks_source.stg_quickbooks__purchase_order_line"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "integer", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "integer", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "double precision", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "text", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "text", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "double precision", "index": 18, "name": "item_expense_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_linked_txn", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"purchase_order_id": {"type": "character varying", "index": 1, "name": "purchase_order_id", "comment": null}, "bill_id": {"type": "character varying", "index": 2, "name": "bill_id", "comment": null}, "purchase_id": {"type": "character varying", "index": 3, "name": "purchase_id", "comment": null}, "vendor_credit_id": {"type": "character varying", "index": 4, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "purchase_order_id": {"type": "integer", "index": 2, "name": "purchase_order_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "bill_id": {"type": "integer", "index": 4, "name": "bill_id", "comment": null}, "purchase_id": {"type": "integer", "index": 5, "name": "purchase_id", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 6, "name": "vendor_credit_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.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_order_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}, "class_id": {"type": "integer", "index": 4, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "custom_customer_type": {"type": "text", "index": 7, "name": "custom_customer_type", "comment": null}, "custom_p_o_number": {"type": "integer", "index": 8, "name": "custom_p_o_number", "comment": null}, "doc_number": {"type": "integer", "index": 9, "name": "doc_number", "comment": null}, "due_date": {"type": "integer", "index": 10, "name": "due_date", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 12, "name": "global_tax_calculation", "comment": null}, "memo": {"type": "text", "index": 13, "name": "memo", "comment": null}, "payable_account_id": {"type": "integer", "index": 14, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 15, "name": "private_note", "comment": null}, "sales_term_id": {"type": "integer", "index": 16, "name": "sales_term_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 17, "name": "shipping_address_id", "comment": null}, "status": {"type": "text", "index": 18, "name": "status", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "double precision", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 23, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 24, "name": "updated_at", "comment": null}, "vendor_address_id": {"type": "integer", "index": 25, "name": "vendor_address_id", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "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.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__purchase_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}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "credit": {"type": "integer", "index": 6, "name": "credit", "comment": null}, "currency_id": {"type": "text", "index": 7, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 10, "name": "doc_number", "comment": null}, "employee_id": {"type": "integer", "index": 11, "name": "employee_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 12, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 13, "name": "global_tax_calculation", "comment": null}, "payment_method_id": {"type": "integer", "index": 14, "name": "payment_method_id", "comment": null}, "payment_type": {"type": "text", "index": 15, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 16, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 17, "name": "private_note", "comment": null}, "remit_to_address_id": {"type": "integer", "index": 18, "name": "remit_to_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 19, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 20, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 21, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 22, "name": "total_tax", "comment": null}, "transaction_date": {"type": "integer", "index": 23, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 24, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 25, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 26, "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.quickbooks_source.stg_quickbooks__purchase_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "character varying", "index": 1, "name": "refund_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "class_id": {"type": "integer", "index": 5, "name": "class_id", "comment": null}, "deposit_to_account_id": {"type": "character varying", "index": 6, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "customer_id": {"type": "character varying", "index": 9, "name": "customer_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "integer", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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.quickbooks_source.stg_quickbooks__refund_receipt"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"refund_id": {"type": "character varying", "index": 1, "name": "refund_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "character varying", "index": 5, "name": "discount_account_id", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 7, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 8, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 9, "name": "sales_item_unit_price", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 10, "name": "sales_item_tax_code_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.quickbooks_source.stg_quickbooks__refund_receipt_line"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "refund_id": {"type": "integer", "index": 2, "name": "refund_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_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.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__refund_receipt_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}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "check_payment_account_number": {"type": "integer", "index": 8, "name": "check_payment_account_number", "comment": null}, "check_payment_bank_name": {"type": "integer", "index": 9, "name": "check_payment_bank_name", "comment": null}, "check_payment_check_number": {"type": "integer", "index": 10, "name": "check_payment_check_number", "comment": null}, "check_payment_name_on_account": {"type": "integer", "index": 11, "name": "check_payment_name_on_account", "comment": null}, "check_payment_status": {"type": "integer", "index": 12, "name": "check_payment_status", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 14, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 15, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 16, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 17, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 18, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 19, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 20, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 21, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 22, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 23, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 24, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 25, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 26, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 27, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 28, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 29, "name": "customer_memo", "comment": null}, "department_id": {"type": "integer", "index": 30, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 31, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 32, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 33, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 34, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 35, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 36, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 37, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 38, "name": "payment_reference_number", "comment": null}, "payment_type": {"type": "integer", "index": 39, "name": "payment_type", "comment": null}, "print_status": {"type": "integer", "index": 40, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 41, "name": "private_note", "comment": null}, "shipping_address_id": {"type": "integer", "index": 42, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 43, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 44, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 45, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 46, "name": "total_tax", "comment": null}, "transaction_date": {"type": "integer", "index": 47, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 48, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 49, "name": "updated_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.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "character varying", "index": 1, "name": "sales_receipt_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "deposit_to_account_id": {"type": "character varying", "index": 5, "name": "deposit_to_account_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 6, "name": "created_at", "comment": null}, "customer_id": {"type": "character varying", "index": 7, "name": "customer_id", "comment": null}, "department_id": {"type": "integer", "index": 8, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 11, "name": "exchange_rate", "comment": null}, "transaction_date": {"type": "integer", "index": 12, "name": "transaction_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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.quickbooks_source.stg_quickbooks__sales_receipt"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"sales_receipt_id": {"type": "character varying", "index": 1, "name": "sales_receipt_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "amount": {"type": "integer", "index": 3, "name": "amount", "comment": null}, "description": {"type": "text", "index": 4, "name": "description", "comment": null}, "discount_account_id": {"type": "character varying", "index": 5, "name": "discount_account_id", "comment": null}, "sales_item_account_id": {"type": "character varying", "index": 6, "name": "sales_item_account_id", "comment": null}, "sales_item_item_id": {"type": "character varying", "index": 7, "name": "sales_item_item_id", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 8, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 9, "name": "sales_item_quantity", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 10, "name": "sales_item_unit_price", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "sales_receipt_id": {"type": "integer", "index": 2, "name": "sales_receipt_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "bundle_id": {"type": "integer", "index": 5, "name": "bundle_id", "comment": null}, "bundle_quantity": {"type": "integer", "index": 6, "name": "bundle_quantity", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "description_service_date": {"type": "integer", "index": 8, "name": "description_service_date", "comment": null}, "description_tax_code_id": {"type": "integer", "index": 9, "name": "description_tax_code_id", "comment": null}, "discount_account_id": {"type": "integer", "index": 10, "name": "discount_account_id", "comment": null}, "discount_class_id": {"type": "integer", "index": 11, "name": "discount_class_id", "comment": null}, "discount_discount_percent": {"type": "integer", "index": 12, "name": "discount_discount_percent", "comment": null}, "discount_percent_based": {"type": "integer", "index": 13, "name": "discount_percent_based", "comment": null}, "discount_tax_code_id": {"type": "integer", "index": 14, "name": "discount_tax_code_id", "comment": null}, "sales_item_account_id": {"type": "integer", "index": 15, "name": "sales_item_account_id", "comment": null}, "sales_item_class_id": {"type": "integer", "index": 16, "name": "sales_item_class_id", "comment": null}, "sales_item_discount_amount": {"type": "integer", "index": 17, "name": "sales_item_discount_amount", "comment": null}, "sales_item_discount_rate": {"type": "integer", "index": 18, "name": "sales_item_discount_rate", "comment": null}, "sales_item_item_id": {"type": "integer", "index": 19, "name": "sales_item_item_id", "comment": null}, "sales_item_quantity": {"type": "integer", "index": 20, "name": "sales_item_quantity", "comment": null}, "sales_item_service_date": {"type": "integer", "index": 21, "name": "sales_item_service_date", "comment": null}, "sales_item_tax_code_id": {"type": "text", "index": 22, "name": "sales_item_tax_code_id", "comment": null}, "sales_item_unit_price": {"type": "integer", "index": 23, "name": "sales_item_unit_price", "comment": null}, "sub_total_item_id": {"type": "integer", "index": 24, "name": "sub_total_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.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__sales_receipt_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}, "apply_tax_after_discount": {"type": "integer", "index": 4, "name": "apply_tax_after_discount", "comment": null}, "balance": {"type": "integer", "index": 5, "name": "balance", "comment": null}, "bill_email": {"type": "text", "index": 6, "name": "bill_email", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "credit_card_amount": {"type": "integer", "index": 10, "name": "credit_card_amount", "comment": null}, "credit_card_auth_code": {"type": "integer", "index": 11, "name": "credit_card_auth_code", "comment": null}, "credit_card_billing_address_street": {"type": "integer", "index": 12, "name": "credit_card_billing_address_street", "comment": null}, "credit_card_cc_expiry_month": {"type": "integer", "index": 13, "name": "credit_card_cc_expiry_month", "comment": null}, "credit_card_cc_expiry_year": {"type": "integer", "index": 14, "name": "credit_card_cc_expiry_year", "comment": null}, "credit_card_cctrans_id": {"type": "integer", "index": 15, "name": "credit_card_cctrans_id", "comment": null}, "credit_card_name_on_account": {"type": "integer", "index": 16, "name": "credit_card_name_on_account", "comment": null}, "credit_card_postal_code": {"type": "integer", "index": 17, "name": "credit_card_postal_code", "comment": null}, "credit_card_process_payment": {"type": "integer", "index": 18, "name": "credit_card_process_payment", "comment": null}, "credit_card_status": {"type": "integer", "index": 19, "name": "credit_card_status", "comment": null}, "credit_card_transaction_authorization_time": {"type": "integer", "index": 20, "name": "credit_card_transaction_authorization_time", "comment": null}, "credit_card_type": {"type": "integer", "index": 21, "name": "credit_card_type", "comment": null}, "currency_id": {"type": "text", "index": 22, "name": "currency_id", "comment": null}, "customer_id": {"type": "integer", "index": 23, "name": "customer_id", "comment": null}, "customer_memo": {"type": "text", "index": 24, "name": "customer_memo", "comment": null}, "delivery_time": {"type": "integer", "index": 25, "name": "delivery_time", "comment": null}, "delivery_type": {"type": "integer", "index": 26, "name": "delivery_type", "comment": null}, "department_id": {"type": "integer", "index": 27, "name": "department_id", "comment": null}, "deposit_to_account_id": {"type": "integer", "index": 28, "name": "deposit_to_account_id", "comment": null}, "doc_number": {"type": "integer", "index": 29, "name": "doc_number", "comment": null}, "email_status": {"type": "integer", "index": 30, "name": "email_status", "comment": null}, "exchange_rate": {"type": "integer", "index": 31, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 32, "name": "global_tax_calculation", "comment": null}, "home_balance": {"type": "integer", "index": 33, "name": "home_balance", "comment": null}, "home_total_amount": {"type": "integer", "index": 34, "name": "home_total_amount", "comment": null}, "payment_method_id": {"type": "integer", "index": 35, "name": "payment_method_id", "comment": null}, "payment_reference_number": {"type": "integer", "index": 36, "name": "payment_reference_number", "comment": null}, "print_status": {"type": "integer", "index": 37, "name": "print_status", "comment": null}, "private_note": {"type": "integer", "index": 38, "name": "private_note", "comment": null}, "ship_date": {"type": "integer", "index": 39, "name": "ship_date", "comment": null}, "shipping_address_id": {"type": "integer", "index": 40, "name": "shipping_address_id", "comment": null}, "sync_token": {"type": "integer", "index": 41, "name": "sync_token", "comment": null}, "tax_code_id": {"type": "integer", "index": 42, "name": "tax_code_id", "comment": null}, "total_amount": {"type": "integer", "index": 43, "name": "total_amount", "comment": null}, "total_tax": {"type": "integer", "index": 44, "name": "total_tax", "comment": null}, "tracking_number": {"type": "integer", "index": 45, "name": "tracking_number", "comment": null}, "transaction_date": {"type": "integer", "index": 46, "name": "transaction_date", "comment": null}, "transaction_source": {"type": "integer", "index": 47, "name": "transaction_source", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 48, "name": "updated_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.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, "model.quickbooks_source.stg_quickbooks__transfer": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transfer_id": {"type": "character varying", "index": 1, "name": "transfer_id", "comment": null}, "amount": {"type": "integer", "index": 2, "name": "amount", "comment": null}, "from_account_id": {"type": "character varying", "index": 3, "name": "from_account_id", "comment": null}, "to_account_id": {"type": "character varying", "index": 4, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 5, "name": "transaction_date", "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.quickbooks_source.stg_quickbooks__transfer"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__transfer_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}, "amount": {"type": "integer", "index": 4, "name": "amount", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "from_account_id": {"type": "integer", "index": 6, "name": "from_account_id", "comment": null}, "private_note": {"type": "text", "index": 7, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 8, "name": "sync_token", "comment": null}, "to_account_id": {"type": "integer", "index": 9, "name": "to_account_id", "comment": null}, "transaction_date": {"type": "date", "index": 10, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 11, "name": "updated_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.quickbooks_source.stg_quickbooks__transfer_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "character varying", "index": 1, "name": "vendor_id", "comment": null}, "account_number": {"type": "integer", "index": 2, "name": "account_number", "comment": null}, "is_active": {"type": "boolean", "index": 3, "name": "is_active", "comment": null}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "billing_address_id": {"type": "character varying", "index": 5, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 8, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 9, "name": "display_name", "comment": null}, "web_url": {"type": "integer", "index": 10, "name": "web_url", "comment": null}, "is_vendor_1099": {"type": "boolean", "index": 11, "name": "is_vendor_1099", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "character varying", "index": 1, "name": "vendor_credit_id", "comment": null}, "balance": {"type": "integer", "index": 2, "name": "balance", "comment": null}, "doc_number": {"type": "character varying", "index": 3, "name": "doc_number", "comment": null}, "total_amount": {"type": "integer", "index": 4, "name": "total_amount", "comment": null}, "currency_id": {"type": "text", "index": 5, "name": "currency_id", "comment": null}, "exchange_rate": {"type": "integer", "index": 6, "name": "exchange_rate", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 7, "name": "created_at", "comment": null}, "payable_account_id": {"type": "character varying", "index": 8, "name": "payable_account_id", "comment": null}, "department_id": {"type": "integer", "index": 9, "name": "department_id", "comment": null}, "private_note": {"type": "text", "index": 10, "name": "private_note", "comment": null}, "transaction_date": {"type": "date", "index": 11, "name": "transaction_date", "comment": null}, "vendor_id": {"type": "character varying", "index": 12, "name": "vendor_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 13, "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.quickbooks_source.stg_quickbooks__vendor_credit"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"metadata": {"type": "BASE TABLE", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_credit_id": {"type": "character varying", "index": 1, "name": "vendor_credit_id", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "account_expense_customer_id": {"type": "character varying", "index": 3, "name": "account_expense_customer_id", "comment": null}, "account_expense_account_id": {"type": "character varying", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 6, "name": "account_expense_tax_code_id", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 7, "name": "account_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "character varying", "index": 8, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "character varying", "index": 9, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 10, "name": "item_expense_quantity", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 11, "name": "item_expense_unit_price", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 12, "name": "item_expense_class_id", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 13, "name": "item_expense_billable_status", "comment": null}, "amount": {"type": "integer", "index": 14, "name": "amount", "comment": null}, "description": {"type": "text", "index": 15, "name": "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.quickbooks_source.stg_quickbooks__vendor_credit_line"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_line_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "vendor_credit_id": {"type": "integer", "index": 2, "name": "vendor_credit_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "account_expense_account_id": {"type": "integer", "index": 4, "name": "account_expense_account_id", "comment": null}, "account_expense_billable_status": {"type": "text", "index": 5, "name": "account_expense_billable_status", "comment": null}, "account_expense_class_id": {"type": "integer", "index": 6, "name": "account_expense_class_id", "comment": null}, "account_expense_customer_id": {"type": "integer", "index": 7, "name": "account_expense_customer_id", "comment": null}, "account_expense_tax_amount": {"type": "integer", "index": 8, "name": "account_expense_tax_amount", "comment": null}, "account_expense_tax_code_id": {"type": "text", "index": 9, "name": "account_expense_tax_code_id", "comment": null}, "amount": {"type": "integer", "index": 10, "name": "amount", "comment": null}, "description": {"type": "text", "index": 11, "name": "description", "comment": null}, "item_expense_billable_status": {"type": "integer", "index": 12, "name": "item_expense_billable_status", "comment": null}, "item_expense_class_id": {"type": "integer", "index": 13, "name": "item_expense_class_id", "comment": null}, "item_expense_customer_id": {"type": "integer", "index": 14, "name": "item_expense_customer_id", "comment": null}, "item_expense_item_id": {"type": "integer", "index": 15, "name": "item_expense_item_id", "comment": null}, "item_expense_quantity": {"type": "integer", "index": 16, "name": "item_expense_quantity", "comment": null}, "item_expense_tax_code_id": {"type": "integer", "index": 17, "name": "item_expense_tax_code_id", "comment": null}, "item_expense_unit_price": {"type": "integer", "index": 18, "name": "item_expense_unit_price", "comment": null}, "private_note": {"type": "integer", "index": 19, "name": "private_note", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_credit_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}, "balance": {"type": "integer", "index": 4, "name": "balance", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 5, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 6, "name": "currency_id", "comment": null}, "department_id": {"type": "integer", "index": 7, "name": "department_id", "comment": null}, "doc_number": {"type": "integer", "index": 8, "name": "doc_number", "comment": null}, "exchange_rate": {"type": "integer", "index": 9, "name": "exchange_rate", "comment": null}, "global_tax_calculation": {"type": "integer", "index": 10, "name": "global_tax_calculation", "comment": null}, "payable_account_id": {"type": "integer", "index": 11, "name": "payable_account_id", "comment": null}, "private_note": {"type": "text", "index": 12, "name": "private_note", "comment": null}, "sync_token": {"type": "integer", "index": 13, "name": "sync_token", "comment": null}, "total_amount": {"type": "integer", "index": 14, "name": "total_amount", "comment": null}, "transaction_date": {"type": "date", "index": 15, "name": "transaction_date", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 16, "name": "updated_at", "comment": null}, "vendor_id": {"type": "integer", "index": 17, "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.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"metadata": {"type": "VIEW", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "name": "stg_quickbooks__vendor_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_number": {"type": "integer", "index": 3, "name": "account_number", "comment": null}, "active": {"type": "boolean", "index": 4, "name": "active", "comment": null}, "alternate_phone": {"type": "integer", "index": 5, "name": "alternate_phone", "comment": null}, "balance": {"type": "integer", "index": 6, "name": "balance", "comment": null}, "billing_address_id": {"type": "integer", "index": 7, "name": "billing_address_id", "comment": null}, "company_name": {"type": "text", "index": 8, "name": "company_name", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 9, "name": "created_at", "comment": null}, "currency_id": {"type": "text", "index": 10, "name": "currency_id", "comment": null}, "display_name": {"type": "text", "index": 11, "name": "display_name", "comment": null}, "email": {"type": "text", "index": 12, "name": "email", "comment": null}, "family_name": {"type": "integer", "index": 13, "name": "family_name", "comment": null}, "fax_number": {"type": "integer", "index": 14, "name": "fax_number", "comment": null}, "given_name": {"type": "integer", "index": 15, "name": "given_name", "comment": null}, "middle_name": {"type": "integer", "index": 16, "name": "middle_name", "comment": null}, "mobile_phone": {"type": "integer", "index": 17, "name": "mobile_phone", "comment": null}, "other_contacts": {"type": "integer", "index": 18, "name": "other_contacts", "comment": null}, "primary_phone": {"type": "integer", "index": 19, "name": "primary_phone", "comment": null}, "print_on_check_name": {"type": "text", "index": 20, "name": "print_on_check_name", "comment": null}, "suffix": {"type": "integer", "index": 21, "name": "suffix", "comment": null}, "sync_token": {"type": "integer", "index": 22, "name": "sync_token", "comment": null}, "tax_identifier": {"type": "integer", "index": 23, "name": "tax_identifier", "comment": null}, "term_id": {"type": "integer", "index": 24, "name": "term_id", "comment": null}, "title": {"type": "integer", "index": 25, "name": "title", "comment": null}, "updated_at": {"type": "timestamp without time zone", "index": 26, "name": "updated_at", "comment": null}, "vendor_1099": {"type": "boolean", "index": 27, "name": "vendor_1099", "comment": null}, "web_url": {"type": "integer", "index": 28, "name": "web_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.quickbooks_source.stg_quickbooks__vendor_tmp"}}, "sources": {}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 360349a..56291a2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ - + @@ -16,17 +16,17 @@ - + - +
icons
- diff --git a/docs/manifest.json b/docs/manifest.json index 40a524b..e0f3fd6 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-03-11T16:18:19.129667Z", "invocation_id": "fd1112b1-d87b-4c9c-b6d0-769ca5bc7bf3", "env": {}, "project_id": "aa9386a7fba3fd9e54dc759cf0b5037c", "user_id": "57178664-37b2-4047-9572-68ec8b488cd7", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"seed.quickbooks_source_integration_tests.bill_payment_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "data/bill_payment_data.csv", "name": "bill_payment_data", "resource_type": "seed", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_data`"}, "seed.quickbooks_source_integration_tests.bundle_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bundle_data.csv", "original_file_path": "data/bundle_data.csv", "name": "bundle_data", "resource_type": "seed", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bundle_data`"}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "data/bill_payment_line_data.csv", "name": "bill_payment_line_data", "resource_type": "seed", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "ae8e7b58ddb78ecbcb7facd257a29f27db08cb69e4014ee40e3a07d02e7ea51a"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_line_data`"}, "seed.quickbooks_source_integration_tests.payment_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "payment_line_data.csv", "original_file_path": "data/payment_line_data.csv", "name": "payment_line_data", "resource_type": "seed", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`payment_line_data`"}, "seed.quickbooks_source_integration_tests.vendor_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "vendor_data.csv", "original_file_path": "data/vendor_data.csv", "name": "vendor_data", "resource_type": "seed", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`vendor_data`"}, "seed.quickbooks_source_integration_tests.address_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "address_data"], "unique_id": "seed.quickbooks_source_integration_tests.address_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "address_data.csv", "original_file_path": "data/address_data.csv", "name": "address_data", "resource_type": "seed", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`address_data`"}, "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_linked_txn_data.csv", "original_file_path": "data/purchase_order_linked_txn_data.csv", "name": "purchase_order_linked_txn_data", "resource_type": "seed", "alias": "purchase_order_linked_txn_data", "checksum": {"name": "sha256", "checksum": "783640948c1f42079de535df23609064f3195e20ce34dffe56ac54f0c0f16ada"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_linked_txn_data`"}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "data/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "resource_type": "seed", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_bundle_data`"}, "seed.quickbooks_source_integration_tests.invoice_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_data.csv", "original_file_path": "data/invoice_data.csv", "name": "invoice_data", "resource_type": "seed", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "05a4273632f65bdeaff5845d43bb3fc5a68efa8985f86e054af045d810ecb652"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_data`"}, "seed.quickbooks_source_integration_tests.payment_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "payment_data.csv", "original_file_path": "data/payment_data.csv", "name": "payment_data", "resource_type": "seed", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`payment_data`"}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "data/invoice_line_data.csv", "name": "invoice_line_data", "resource_type": "seed", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "267f7835012af57f5d0b6dd927fb6e0ea7094d780ab551d7147e2bff48bcf063"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_data`"}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "data/deposit_line_data.csv", "name": "deposit_line_data", "resource_type": "seed", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deposit_line_data`"}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "data/estimate_line_data.csv", "name": "estimate_line_data", "resource_type": "seed", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`estimate_line_data`"}, "seed.quickbooks_source_integration_tests.purchase_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_data.csv", "original_file_path": "data/purchase_data.csv", "name": "purchase_data", "resource_type": "seed", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "4f3426746d9b8739cf9538e94b0a79fe7894be76decdf43e920716dfa200d131"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_data`"}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "data/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "resource_type": "seed", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_line_data`"}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "data/credit_memo_line_data.csv", "name": "credit_memo_line_data", "resource_type": "seed", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_line_data`"}, "seed.quickbooks_source_integration_tests.bill_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_data.csv", "original_file_path": "data/bill_data.csv", "name": "bill_data", "resource_type": "seed", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_data`"}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "data/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "resource_type": "seed", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_linked_txn_data`"}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "data/vendor_credit_data.csv", "name": "vendor_credit_data", "resource_type": "seed", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_data`"}, "seed.quickbooks_source_integration_tests.customer_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_source_integration_tests.customer_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "customer_data.csv", "original_file_path": "data/customer_data.csv", "name": "customer_data", "resource_type": "seed", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`customer_data`"}, "seed.quickbooks_source_integration_tests.estimate_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "estimate_data.csv", "original_file_path": "data/estimate_data.csv", "name": "estimate_data", "resource_type": "seed", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`estimate_data`"}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "data/purchase_line_data.csv", "name": "purchase_line_data", "resource_type": "seed", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_line_data`"}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "data/journal_entry_line_data.csv", "name": "journal_entry_line_data", "resource_type": "seed", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "a17bbafe90f2f00403538657b9f45c14d929ce2d9b5b29a55828855756024516"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_line_data`"}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "data/journal_entry_data.csv", "name": "journal_entry_data", "resource_type": "seed", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_data`"}, "seed.quickbooks_source_integration_tests.bill_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bill_line_data.csv", "original_file_path": "data/bill_line_data.csv", "name": "bill_line_data", "resource_type": "seed", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "df882ab43a0bd79aed13e13dee1934269989ae1bea9d3672ed7cc9840c14d073"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bill_line_data`"}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "data/bundle_item_data.csv", "name": "bundle_item_data", "resource_type": "seed", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`bundle_item_data`"}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "data/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "resource_type": "seed", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`invoice_linked_txn_data`"}, "seed.quickbooks_source_integration_tests.account_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "account_data"], "unique_id": "seed.quickbooks_source_integration_tests.account_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "account_data.csv", "original_file_path": "data/account_data.csv", "name": "account_data", "resource_type": "seed", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "21711c5f4113de909d70da0ef80633513b932ca8db2558503e1cc0e4bb663a8b"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`account_data`"}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "data/purchase_order_line_data.csv", "name": "purchase_order_line_data", "resource_type": "seed", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_line_data`"}, "seed.quickbooks_source_integration_tests.transfer_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_source_integration_tests.transfer_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "transfer_data.csv", "original_file_path": "data/transfer_data.csv", "name": "transfer_data", "resource_type": "seed", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "79139d758013f9fe26aec7a1283224df79f5bb780c3b896ed8ead578bc4f8ff5"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`transfer_data`"}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "data/purchase_order_data.csv", "name": "purchase_order_data", "resource_type": "seed", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_data`"}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "data/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "resource_type": "seed", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_line_data`"}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "data/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "resource_type": "seed", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_line_data`"}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "data/credit_memo_data.csv", "name": "credit_memo_data", "resource_type": "seed", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_data`"}, "seed.quickbooks_source_integration_tests.department_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "department_data"], "unique_id": "seed.quickbooks_source_integration_tests.department_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "department_data.csv", "original_file_path": "data/department_data.csv", "name": "department_data", "resource_type": "seed", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`department_data`"}, "seed.quickbooks_source_integration_tests.item_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "item_data"], "unique_id": "seed.quickbooks_source_integration_tests.item_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "item_data.csv", "original_file_path": "data/item_data.csv", "name": "item_data", "resource_type": "seed", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`item_data`"}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "data/sales_receipt_data.csv", "name": "sales_receipt_data", "resource_type": "seed", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_data`"}, "seed.quickbooks_source_integration_tests.deposit_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "deposit_data.csv", "original_file_path": "data/deposit_data.csv", "name": "deposit_data", "resource_type": "seed", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`deposit_data`"}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"raw_sql": "", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "data/refund_receipt_data.csv", "name": "refund_receipt_data", "resource_type": "seed", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "config": {"enabled": true, "materialized": "seed", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], "full_refresh": null, "quote_columns": false, "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "tags": [], "refs": [], "sources": [], "depends_on": {"macros": [], "nodes": []}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "account_data": null, "address_data": null, "bill_line_data": null, "bill_linked_txn_data": null, "bill_payment_line_data": null, "bill_payment_data": null, "bill_data": null, "bundle_item_data": null, "bundle_data": null, "credit_memo_data": null, "credit_memo_line_data": null, "customer_data": null, "department_data": null, "deposit_line_data": null, "deposit_data": null, "estimate_data": null, "estimate_line_data": null, "incoice_data": null, "invoice_line_data": null, "invoice_line_bundle_data": null, "invoice_linked_txn_data": null, "item_data": null, "journal_entry_line_data": null, "journal_entry_data": null, "payment_data": null, "payment_line_data": null, "purchase_line_data": null, "purchase_data": null, "purchase_order_data": null, "purchase_order_line_data": null, "purchase_order_linked_txn_data": null, "refund_receipt_line_data": null, "refund_receipt_data": null, "sales_receipt_line_data": null, "sales_receipt_data": null, "transfer_data": null, "vendor_credit_line_data": null, "vendor_credit_data": null, "vendor_data": null}, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_data`"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n amount,\n customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "resource_type": "model", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "cc62e6db510aa85fd830f285ae6cdc76de14edab2fcaa631172a145301270bc3"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "description": "Individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\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 billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as \n int64\n) as journal_entry_id,\n index,\n cast(account_id as \n int64\n) as account_id,\n amount,\n customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as \n int64\n) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_line`"}, "model.quickbooks_source.stg_quickbooks__transfer": {"raw_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt_utils.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt_utils.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "resource_type": "model", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "a154b134773fcb467413454de938a795f9b1c0a17e3db667563ca4ab657dbf1d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as transfer_id,\n amount,\n cast(from_account_id as \n int64\n) as from_account_id,\n cast(to_account_id as \n int64\n) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer`"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "resource_type": "model", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "07f2291a80ba273988245a5c8497aa3ef3186aae615fe5e02d8c9a85dab1d38e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "description": "", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as \n int64\n) as bill_payment_id,\n index,\n amount,\n cast(bill_id as \n int64\n) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment_line`"}, "model.quickbooks_source.stg_quickbooks__payment_line": {"raw_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "resource_type": "model", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "6a058428fc2c2f470f683982c6c474509fce6127df1d140c63053c7f41edfb97"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as \n int64\n) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as \n int64\n) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment_line`"}, "model.quickbooks_source.stg_quickbooks__vendor": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "resource_type": "model", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "2a74056af543a188ddbdceb1fd6133c07aa73a8ee6c4d642132294ac5d7569dc"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as vendor_id,\n account_number,\n active as is_active,\n balance,\n billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor`"}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"raw_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "resource_type": "model", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "3c23560119916dd4ea16ce99acb2dc98532e5fd2c36465ae7612293b1d9d9d15"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\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 bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n int64\n) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as \n int64\n) as bundle_id,\n cast(account_id as \n int64\n) as account_id,\n cast(item_id as \n int64\n) as item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line`"}, "model.quickbooks_source.stg_quickbooks__estimate": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as estimate_id,\n class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "resource_type": "model", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "48154e452b4048a2225907e2d0211003a830140a388cc7c45a3c02ea5462169f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as estimate_id,\n class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate`"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"raw_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "resource_type": "model", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "bc08c4f710a8e71b1834590a24ac78e53fc5278e755816fb394646223409c525"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as \n int64\n) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as \n int64\n) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo_line`"}, "model.quickbooks_source.stg_quickbooks__bundle": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "resource_type": "model", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "bfffe908d8c80d59eae1e472df0766f4cdefff07760fb6d447ec666c7338fb7b"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\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 print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle`"}, "model.quickbooks_source.stg_quickbooks__department": {"raw_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "resource_type": "model", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "2be93e7cc41f15b54e16e9dcf3fa931ca96aa0c49cafee6b61af10a8938a063f"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__department_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\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 parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__department`"}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"raw_sql": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "resource_type": "model", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "2f38e705cc108f5c9ad72d7c7f3932e8698d2a2d80ada35a5772b4be72658fab"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as \n int64\n) as purchase_id,\n index,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_line`"}, "model.quickbooks_source.stg_quickbooks__purchase": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n customer_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "resource_type": "model", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "dfd0a3e02fa435223cc77e553ce8a991aec851e1896fb6afa76c5776d502f986"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as purchase_id,\n cast(account_id as \n int64\n) as account_id,\n created_at,\n cast(doc_number as \n string\n) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n customer_id,\n cast(vendor_id as \n int64\n) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase`"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt_utils.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "e175a6a7b27b109ede60ca38040b605d954a8cd286d1986618a503666cf1d389"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as \n int64\n) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n int64\n) as discount_account_id,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt_line`"}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "resource_type": "model", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "2624a01c121773dffa838b3a3d53f3d3310f5d6eb85195f11da3bca108a2010a"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as \n int64\n) as bundle_id,\n cast(item_id as \n int64\n) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_item`"}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"raw_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "resource_type": "model", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "5be2ca2c333e9a2df1f5b7155e9a2b6cb83dd930b5377e313502f0fbca543f09"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as credit_memo_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo`"}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "resource_type": "model", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "8d70410dcbf7d524f75a5e31c3500415b6d61f6beedaaf3d02593a69350e75fb"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"]}, "description": "Table containing records of purchase orders (PO).", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_customer_type\n \n as \n \n custom_customer_type\n \n, \n cast(null as \n string\n) as \n \n custom_po_number\n \n , \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_address_id\n \n as \n \n vendor_address_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as \n int64\n) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as \n string\n) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as \n int64\n) as payable_account_id,\n cast(vendor_id as \n int64\n) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "d5f46220d3dbd754bd547e69d045b939f5932d049031971fccd67bea686a9cc1"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as \n int64\n) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n int64\n) as discount_account_id,\n cast(sales_item_account_id as \n int64\n) as sales_item_account_id,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_line`"}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "16e6bb7f7b68a0b95b535ccc9a45414bb57985ecc411620bb5fb5935c81406ef"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as sales_receipt_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n created_at,\n customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt`"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "56a40695b8f9408f809769a8ca93047b91dd0adda853560599d7215440bc1763"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"]}, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_order_id\n \n as \n \n purchase_order_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as \n int64\n) as purchase_order_id,\n index,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n item_expense_billable_status,\n item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_line`"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"raw_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "resource_type": "model", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "aff2dba72f10b7876d4595f2255c089ebcaf3fe08b54bbb000a7cfc1450402e2"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n int64\n) as invoice_id,\n cast(payment_id as \n int64\n) as payment_id,\n cast(estimate_id as \n int64\n) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_linked_txn`"}, "model.quickbooks_source.stg_quickbooks__invoice": {"raw_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "resource_type": "model", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "fca3c91479c7bcc66866ce046852ce745b6a904dcdc08912e40d2e1e44af7cd4"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as invoice_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice`"}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt_utils.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt_utils.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "resource_type": "model", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "226c8de9352b518733b100a5fd098df27c120af5f11da95e5298e747a126b35c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as bill_payment_id,\n cast(check_bank_account_id as \n int64\n) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as \n int64\n) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment`"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "resource_type": "model", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "27e8489f753e4b74d7ef89e3e0e3b863f684b6f3582e62402b21a70d3c765a4d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line_bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\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 description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n int64\n) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as \n int64\n) as sales_item_item_id,\n cast(item_id as \n int64\n) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as \n int64\n) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line_bundle`"}, "model.quickbooks_source.stg_quickbooks__account": {"raw_sql": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount 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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as account_id,\n cast(account_number as {{ dbt_utils.type_string() }}) as account_number,\n sub_account as is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at\n\n from base\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "resource_type": "model", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "4d1f16dd355ee15887fe87ed7117aba3d4efb6ed7c6ab5a63816c9d73bfe1bc2"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.\n", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account_tmp`\n\n),\n\naccount 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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\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 parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as \n int64\n) as account_id,\n cast(account_number as \n string\n) as account_number,\n sub_account as is_sub_account,\n parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at\n\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account`"}, "model.quickbooks_source.stg_quickbooks__payment": {"raw_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt_utils.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "resource_type": "model", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "2ef72227933461ec2104e4a3e2a239788fff56cf97ee9b3fe3671a4d4ad9a138"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as \n int64\n) as receivable_account_id,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment`"}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "resource_type": "model", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "c6940335302da931eb1b4dfda43f073aa2b5aa7fabd542c6b4e4b869bb35b768"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\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 bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as \n int64\n) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_line`"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"raw_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "resource_type": "model", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "08089a0bed4ef632ed041864401df60b0c56c18f29db09e8e131c1da4d37b8a6"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "description": "", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n int64\n) as bill_id,\n index,\n cast(bill_payment_id as \n int64\n) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_linked_txn`"}, "model.quickbooks_source.stg_quickbooks__address": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__address_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "resource_type": "model", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "ae7a5371c682396448f4cbbfc02fc651f6dbd4761360cd595e0813eb6b3d0f9e"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__address_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__address`"}, "model.quickbooks_source.stg_quickbooks__bill": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "resource_type": "model", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "fbf8be5ea5848030a93108ab7ed6bc639616edc70845878451ed3098393ad3e3"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as \n int64\n) as bill_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as \n int64\n) as payable_account_id,\n total_amount,\n cast(vendor_id as \n int64\n) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill`"}, "model.quickbooks_source.stg_quickbooks__bill_line": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "resource_type": "model", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "f1ef4c1cbe7d7452de8dda72bbe18512b63aeaae7b84b04565f9d5879f34bc7d"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "description": "", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n int64\n) as bill_id,\n index,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_customer_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_line`"}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "resource_type": "model", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "1fd5badabb28837af0b6bb78b923935b07f6cea40aeb091c424451f3e3051e9c"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as \n int64\n) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as \n string\n) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry`"}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "a53514b8acb73312e2077e6af528954e26451c5e49a9e873d438837723fa6fdd"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as refund_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as \n int64\n) as deposit_to_account_id,\n created_at,\n department_id,\n customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt`"}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt_utils.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt_utils.type_string() }}) as deposit_account_id,\n deposit_class_id,\n deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "resource_type": "model", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "d954264796a827c4b4d1287fea9467ed324d5b0cc651f1d63d7a042c8b863651"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as \n int64\n) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as \n int64\n) as deposit_account_id,\n deposit_class_id,\n deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_line`"}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "05b0105afefd79ddba2fa662bd560488130d24e9f427d9ef3936c6822baf1028"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as vendor_credit_id,\n balance,\n cast(doc_number as \n string\n) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as \n int64\n) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as \n int64\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit`"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index,\n account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "d0df82e6a035be50b5e0bee1af39494fa019e247a8fb502c746fc5904a31b027"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as \n int64\n) as vendor_credit_id,\n index,\n account_expense_customer_id,\n cast(account_expense_account_id as \n int64\n) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n item_expense_customer_id,\n cast(item_expense_item_id as \n int64\n) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit_line`"}, "model.quickbooks_source.stg_quickbooks__deposit": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "resource_type": "model", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "12bc7d8002be27b7ebcb5068ff0294a25f498e563a47f659d6b2123db521c390"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as deposit_id,\n cast(account_id as \n int64\n) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit`"}, "model.quickbooks_source.stg_quickbooks__item": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt_utils.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt_utils.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt_utils.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt_utils.type_string() }}) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "resource_type": "model", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "0095e49755bb9f5340cee9a2253fbf3b6db36875fb3c911df2257667e7e0e93b"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n int64\n) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as \n int64\n) as income_account_id,\n cast(asset_account_id as \n int64\n) as asset_account_id,\n cast(expense_account_id as \n int64\n) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as \n int64\n) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item`"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "77e00cf575e1a2a672d1139b3e004f0044c8002463b588258bcf5cda968a3361"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_int"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"]}, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order_linked_txn.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n purchase_order_id\n \n as \n \n purchase_order_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as \n int64\n) as purchase_order_id,\n cast(bill_id as \n int64\n) as bill_id,\n cast(purchase_id as \n int64\n) as purchase_id,\n cast(vendor_credit_id as \n int64\n) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn`"}, "model.quickbooks_source.stg_quickbooks__customer": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable\n\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "resource_type": "model", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "ed64b1260db07c0c56f7648d3638de85c5848a8099560cf485cd0c4570912251"}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "models/stg_quickbooks.yml", "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table"}, "compiled_sql": "with base as (\n\n select * \n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__customer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__customer`"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nselect * \nfrom {{ var('vendor_credit') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "2cc1af8b806f60a8aab3cc6b08988da2d3014a246be9ff927ced5d1fda182fc9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["vendor_credit_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_credit_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit_tmp`"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nselect * \nfrom {{ var('refund_receipt_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "937c4edb6ed96a15d1ed984d79c6306f9ba1fa3a338e5e7a34fc0b3301f0b1c6"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["refund_receipt_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.refund_receipt_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nselect * \nfrom {{ var('estimate_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "c384d015b8964e52ccf18fcbbd2260278d8f2d9b02e79cda1ed35d89514f018d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["estimate_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.estimate_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`estimate_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nselect *\nfrom {{ var('purchase_order_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "207db6c4ef8cfef78b8de6a2c96cbd0477f63e0a63eda4a08ee215057990ae34"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_order_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"raw_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nselect * \nfrom {{ var('credit_memo_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "d3c8e3dc3108ebae669290dc214fc716857dd7b93134587014f90ae22bd89bec"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["credit_memo_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_memo_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nselect * \nfrom {{ var('journal_entry') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "resource_type": "model", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "61f5ac20efc0252540f3ff70ec87692d2b4635a96ec4ad08e7f8295e9f9e898d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["journal_entry_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.journal_entry_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_tmp`"}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nselect * \nfrom {{ var('invoice_line_bundle') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "resource_type": "model", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "ecba6d64adcba0d6a1ec3bed3bdaee051c8b23ce2bd7d6dd87254a92dc772837"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_line_bundle_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_line_bundle_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_bundle_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line_bundle_tmp`"}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"raw_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\nselect * \nfrom {{ var('payment') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "resource_type": "model", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "68166bc4b2a668928e855e7371c6743a5bf66a1fb1ede8bb2b113ff3e8d9c239"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["payment_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.payment_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`payment_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment_tmp`"}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\nselect * \nfrom {{ var('invoice_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "70e8445c77cc3b476587100fa0123c29ec4a82810ee9517dcc9abcfddd42b835"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nselect * \nfrom {{ var('deposit_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "c792d5b27123728ccbd7b656a2a720c9880baad2c5102b95e275071fc7019440"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deposit_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.deposit_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deposit_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"raw_sql": "select * \nfrom {{ var('customer') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "resource_type": "model", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "ed57930558565003ebd42e837a90057b26f852767bc32e4a58b19094ecbfa509"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["customer_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.customer_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`customer_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__customer_tmp`"}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "65c2cf00e68503a0faa314a95bcb99d9aef127a66b49eed378dba1307b80ff8e"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"raw_sql": "select * \nfrom {{ var('item') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "resource_type": "model", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "af4a69cfe57cc894bf2bab8d71ac00aa95dd4ff1b337ad031accdf8059ce4dd9"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["item_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.item_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`item_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item_tmp`"}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "resource_type": "model", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "89b197ede7e07bf1451016ce108798ac734cb75e9ab2f15a1e3690cd349b91ba"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["account_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.account_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`account_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account_tmp`"}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nselect * \nfrom {{ var('vendor_credit_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "78229c53b993c7bcc6d8355993cdc3a2ff5c07117ced9aaef4ea691019361b6f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["vendor_credit_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_credit_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`vendor_credit_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"raw_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nselect * \nfrom {{ var('department') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "resource_type": "model", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "2fdf3784cf998ce60970941e2839d369cd085661c952946bef8592d1abf32f47"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["department_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.department_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`department_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__department_tmp`"}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nselect * \nfrom {{ var('bundle') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "resource_type": "model", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "167d7ef377ddda2a70dd33550dc6bd59b65b9e5d3af94c86fd348669b19eba01"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bundle_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bundle_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bundle_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_tmp`"}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nselect * \nfrom {{ var('bundle_item') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "resource_type": "model", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "364c8c25c619bdf90cbc036bd87b84d19b686250398a3a107089a883da7828f6"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bundle_item_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bundle_item_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bundle_item_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_item_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nselect *\nfrom {{ var('purchase_order') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "1a4e5034a6f95a3381e9190114b9b6d75ba273524e532d19926fff7061f286a2"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_order_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_tmp`"}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_payment_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "d0c2fe19b83418b83ff4d040425de10b4558cb98b74621fce2de76e67bc53992"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_payment_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_payment_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nselect * \nfrom {{ var('estimate') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "resource_type": "model", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "387d86ea42380e18b5a88af69c9801228ec43e7cfca5fe9a2e00151c9c65f451"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["estimate_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.estimate_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`estimate_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"raw_sql": "select * \nfrom {{ var('purchase') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "resource_type": "model", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "66bc8c4634087951dd5d541ee092908f907fc0a521936fa5753894b2f121f471"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_tmp`"}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"raw_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nselect * \nfrom {{ var('credit_memo') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "resource_type": "model", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "5a8abf0f3c86c4d7675fd783d26cd5477bec0e06056f82b8351d333f1df9fe7a"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["credit_memo_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_memo_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`credit_memo_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo_tmp`"}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "resource_type": "model", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "13eedc57b03b350d0c228dbf1556178789afabe88eb541806450c0c3856e8dd7"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_tmp`"}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"raw_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nselect * \nfrom {{ var('transfer') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "resource_type": "model", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "fe093aad89e2c31a8bdcdc76afda4d24dcefa51d92b3233c64524eeba3eef37b"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["transfer_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.transfer_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`transfer_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer_tmp`"}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"raw_sql": "select * \nfrom {{ var('vendor') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "resource_type": "model", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "8b70affb7fe37710eca09eae95bf632d9d27148f5b733a85704da28973d0488d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["vendor_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`vendor_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"raw_sql": "select * \nfrom {{ var('purchase_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "4fd11ba6c866de7b7e63ac6b49ad73bda7f7979bd524c1b590bd3199237170e3"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"raw_sql": "select * \nfrom {{ var('address') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "resource_type": "model", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "4bfa0bf8e53b06f5c032b8ce010553ec4c36ae437d01bfb827b23051f252f62d"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["address_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.address_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view"}, "compiled_sql": "select * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`address_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__address_tmp`"}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"raw_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\nselect * \nfrom {{ var('payment_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "5f0d1167d49e59ebd3067c62b5669168b1cc2bad26a10183754a6e487d2abb2f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["payment_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.payment_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`payment_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nselect * \nfrom {{ var('refund_receipt') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "resource_type": "model", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "cfee40b115db7fd6bfa6e9e149f1869ac0f7e00dd706ee67d4d84c8206872abf"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["refund_receipt_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.refund_receipt_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`refund_receipt_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt_tmp`"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "e3359ec9953b6cfab71b2d84d7ea912911eaa099382a7b2ad4a513e432ef65b5"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["sales_receipt_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.sales_receipt_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_tmp`"}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_payment') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "resource_type": "model", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "66eda7d6020107bc0e84dcea48b870c6096225de722562f2d762140fd612beaf"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_payment_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_payment_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_payment_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment_tmp`"}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nselect * \nfrom {{ var('journal_entry_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "b50644aae9cd93f4b5984e7971224db8d93dafd7f248dfb89364bea6972fcfbf"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["journal_entry_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.journal_entry_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`journal_entry_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nselect * \nfrom {{ var('deposit') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "resource_type": "model", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "43224393f0bbff587d3698bbfbbd2ff3cd5f683500cd00a2419c746c005ec5f4"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["deposit_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.deposit_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`deposit_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_tmp`"}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"raw_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_linked_txn') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "resource_type": "model", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "25ee3cc57ef02869b14fd248302c42c2ef078a458770a67ed6364996f5732036"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["bill_linked_txn_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_linked_txn_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`bill_linked_txn_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_linked_txn_tmp`"}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\nselect * \nfrom {{ var('invoice_linked_txn') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "resource_type": "model", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "9c2e3137b556c864bb7da4ece22641b9d5b00ed36305884828a2450f0d75f64a"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_linked_txn_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_linked_txn_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_linked_txn_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_linked_txn_tmp`"}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt_line') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "resource_type": "model", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "d8fd3f81fc56b2f40f2fbe97128c7640153e1b01603635543e6a603110ed9057"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["sales_receipt_line_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.sales_receipt_line_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`sales_receipt_line_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_line_tmp`"}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nselect *\nfrom {{ var('purchase_order_linked_txn') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "resource_type": "model", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "d642b45e31ac46f65cca1d76385d5b5ec5dcaa5ff18a1120a440c13f412c575f"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["purchase_order_linked_txn_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom `dbt-package-testing`.`zendesk_integration_tests`.`purchase_order_linked_txn_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn_tmp`"}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\nselect * \nfrom {{ var('invoice') }}", "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "resource_type": "model", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "94912a9345b3995fc90cbcb50db1e950570080b1c436178b76516a4a602b9fd1"}, "config": {"enabled": true, "materialized": "view", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null}, "tags": [], "refs": [["invoice_data"]], "sources": [], "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_data"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "view", "enabled": true}, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom `dbt-package-testing`.`zendesk_integration_tests`.`invoice_data`", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "`dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_tmp`"}, "test.quickbooks_source.unique_stg_quickbooks__account_account_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ ref('stg_quickbooks__account') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__account_account_id", "resource_type": "test", "alias": "unique_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__account"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__account_account_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n account_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account`\n where account_id is not null\n group by account_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ ref('stg_quickbooks__account') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__account"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__account_account_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account`\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ ref('stg_quickbooks__account') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__account_9a85c0a61d7deea1483c64a802ff3f5f.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__account"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__account_9a85c0a61d7deea1483c64a802ff3f5f.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n classification as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__account`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification"}, "test.quickbooks_source.unique_stg_quickbooks__address_address_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "address_id", "model": "{{ ref('stg_quickbooks__address') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__address_address_id", "resource_type": "test", "alias": "unique_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__address"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__address_address_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n address_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__address`\n where address_id is not null\n group by address_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ ref('stg_quickbooks__address') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__address"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__address_address_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__address`\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_line_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_line`\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_linked_txn`\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_linked_txn`\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_payment_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment_line`\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id"}, "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_payment_bill_payment_id", "resource_type": "test", "alias": "unique_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n bill_payment_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment`\n where bill_payment_id is not null\n group by bill_payment_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ ref('stg_quickbooks__bill_payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill_payment`\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id"}, "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_bill_id", "resource_type": "test", "alias": "unique_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__bill_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n bill_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill`\n where bill_id is not null\n group by bill_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ ref('stg_quickbooks__bill') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bill"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bill_bill_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bill`\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ ref('stg_quickbooks__bundle_item') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle_item`\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id"}, "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "bundle_id", "model": "{{ ref('stg_quickbooks__bundle') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bundle_bundle_id", "resource_type": "test", "alias": "unique_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bundle"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__bundle_bundle_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n bundle_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle`\n where bundle_id is not null\n group by bundle_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ ref('stg_quickbooks__bundle') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__bundle"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__bundle_bundle_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__bundle`\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ ref('stg_quickbooks__credit_memo_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo_line`\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id"}, "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "credit_memo_id", "model": "{{ ref('stg_quickbooks__credit_memo') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__credit_memo_credit_memo_id", "resource_type": "test", "alias": "unique_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n credit_memo_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo`\n where credit_memo_id is not null\n group by credit_memo_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ ref('stg_quickbooks__credit_memo') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__credit_memo`\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id"}, "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ ref('stg_quickbooks__customer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__customer_customer_id", "resource_type": "test", "alias": "unique_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__customer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__customer_customer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n customer_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__customer`\n where customer_id is not null\n group by customer_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ ref('stg_quickbooks__customer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__customer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__customer_customer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__customer`\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ ref('stg_quickbooks__deposit_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit_line`\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id"}, "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "deposit_id", "model": "{{ ref('stg_quickbooks__deposit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__deposit_deposit_id", "resource_type": "test", "alias": "unique_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__deposit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__deposit_deposit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n deposit_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit`\n where deposit_id is not null\n group by deposit_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ ref('stg_quickbooks__deposit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__deposit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__deposit_deposit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__deposit`\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id"}, "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "estimate_id", "model": "{{ ref('stg_quickbooks__estimate') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__estimate_estimate_id", "resource_type": "test", "alias": "unique_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__estimate"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__estimate_estimate_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n estimate_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate`\n where estimate_id is not null\n group by estimate_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ ref('stg_quickbooks__estimate') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__estimate"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__estimate_estimate_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate`\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ ref('stg_quickbooks__estimate_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__estimate_line`\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_linked_txn`\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line`\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice_line_bundle') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice_line_bundle`\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id"}, "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__invoice_invoice_id", "resource_type": "test", "alias": "unique_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__invoice_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n invoice_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice`\n where invoice_id is not null\n group by invoice_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ ref('stg_quickbooks__invoice') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__invoice"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__invoice_invoice_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__invoice`\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id"}, "test.quickbooks_source.unique_stg_quickbooks__item_item_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ ref('stg_quickbooks__item') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__item_item_id", "resource_type": "test", "alias": "unique_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__item"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__item_item_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n item_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item`\n where item_id is not null\n group by item_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ ref('stg_quickbooks__item') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__item"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__item_item_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__item`\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ ref('stg_quickbooks__journal_entry_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_line`\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ ref('stg_quickbooks__journal_entry_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n posting_type as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry_line`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Credit','Debit'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type"}, "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "journal_entry_id", "model": "{{ ref('stg_quickbooks__journal_entry') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__journal_entry_journal_entry_id", "resource_type": "test", "alias": "unique_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n journal_entry_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry`\n where journal_entry_id is not null\n group by journal_entry_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ ref('stg_quickbooks__journal_entry') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__journal_entry`\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ ref('stg_quickbooks__payment_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__payment_line_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment_line`\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id"}, "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "payment_id", "model": "{{ ref('stg_quickbooks__payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__payment_payment_id", "resource_type": "test", "alias": "unique_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__payment_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n payment_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment`\n where payment_id is not null\n group by payment_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ ref('stg_quickbooks__payment') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__payment"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__payment_payment_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__payment`\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ ref('stg_quickbooks__purchase_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_line`\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "purchase_id", "model": "{{ ref('stg_quickbooks__purchase') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_purchase_id", "resource_type": "test", "alias": "unique_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__purchase_purchase_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n purchase_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase`\n where purchase_id is not null\n group by purchase_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ ref('stg_quickbooks__purchase') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_purchase_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase`\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ ref('stg_quickbooks__purchase') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__purchase_d6117bc728224c72d803b4826faeeb59.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__purchase_d6117bc728224c72d803b4826faeeb59.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n payment_type as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Cash','Check','CreditCard'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_line`\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order_linked_txn') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order_linked_txn`\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_order_purchase_order_id", "resource_type": "test", "alias": "unique_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n purchase_order_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`\n where purchase_order_id is not null\n group by purchase_order_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ ref('stg_quickbooks__purchase_order') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_accepted_values(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ ref('stg_quickbooks__purchase_order') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "resource_type": "test", "alias": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\n\nwith all_values as (\n\n select distinct\n status as value_field\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__purchase_order`\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field not in (\n 'Open','Closed'\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "status"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ ref('stg_quickbooks__refund_receipt_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt_line`\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id"}, "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "refund_id", "model": "{{ ref('stg_quickbooks__refund_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__refund_receipt_refund_id", "resource_type": "test", "alias": "unique_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__refund_receipt_refund_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n refund_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt`\n where refund_id is not null\n group by refund_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ ref('stg_quickbooks__refund_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__refund_receipt`\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ ref('stg_quickbooks__sales_receipt_line') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt_line`\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id"}, "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ ref('stg_quickbooks__sales_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "resource_type": "test", "alias": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n sales_receipt_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt`\n where sales_receipt_id is not null\n group by sales_receipt_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ ref('stg_quickbooks__sales_receipt') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__sales_receipt`\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id"}, "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "transfer_id", "model": "{{ ref('stg_quickbooks__transfer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__transfer_transfer_id", "resource_type": "test", "alias": "unique_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__transfer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__transfer_transfer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n transfer_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer`\n where transfer_id is not null\n group by transfer_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ ref('stg_quickbooks__transfer') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__transfer"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__transfer_transfer_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__transfer`\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id"}, "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ ref('stg_quickbooks__vendor_credit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "resource_type": "test", "alias": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n vendor_credit_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit`\n where vendor_credit_id is not null\n group by vendor_credit_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ ref('stg_quickbooks__vendor_credit') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor_credit`\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id"}, "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_unique(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ ref('stg_quickbooks__vendor') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "unique_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/unique_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_vendor_id", "resource_type": "test", "alias": "unique_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_unique"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/unique_stg_quickbooks__vendor_vendor_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom (\n\n select\n vendor_id\n\n from `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor`\n where vendor_id is not null\n group by vendor_id\n having count(*) > 1\n\n) validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id": {"raw_sql": "{{ config(severity='ERROR') }}{{ test_not_null(**_dbt_schema_test_kwargs) }}", "test_metadata": {"namespace": null, "name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ ref('stg_quickbooks__vendor') }}"}}, "compiled": true, "database": "dbt-package-testing", "schema": "zendesk_integration_tests_zendesk_staging", "fqn": ["quickbooks_source", "schema_test", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "schema_test/not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "resource_type": "test", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "materialized": "table", "persist_docs": {}, "post-hook": [], "pre-hook": [], "vars": {}, "quoting": {}, "column_types": {}, "alias": null, "schema": "zendesk_staging", "database": null, "tags": [], "full_refresh": null, "severity": "ERROR"}, "tags": ["schema"], "refs": [["stg_quickbooks__vendor"]], "sources": [], "depends_on": {"macros": ["macro.dbt.test_not_null"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "build_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/schema_test/not_null_stg_quickbooks__vendor_vendor_id.sql", "deferred": false, "unrendered_config": {"schema": "zendesk_staging", "materialized": "table", "severity": "ERROR"}, "compiled_sql": "\n \n \n\n\n\nselect count(*) as validation_errors\nfrom `dbt-package-testing`.`zendesk_integration_tests_zendesk_staging`.`stg_quickbooks__vendor`\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.\n", "columns": {"id": {"name": "id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`account`"}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`address`"}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bill_line`"}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bill_linked_txn`"}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bill_payment_line`"}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bill_payment`"}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bill`"}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bundle_item`"}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`bundle`"}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`credit_memo_line`"}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`credit_memo`"}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`customer`"}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`department`"}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`deposit_line`"}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`deposit`"}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`estimate`"}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`estimate_line`"}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`invoice_linked_txn`"}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`invoice_line`"}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`invoice_line_bundle`"}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`invoice`"}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`item`"}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`journal_entry_line`"}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`journal_entry`"}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`payment_line`"}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`payment`"}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`purchase_line`"}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`purchase`"}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`purchase_order_line`"}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`purchase_order_linked_txn`"}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the purchase order is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`purchase_order`"}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`refund_receipt_line`"}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`refund_receipt`"}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`sales_receipt_line`"}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`sales_receipt`"}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`transfer`"}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`vendor_credit_line`"}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`vendor_credit`"}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "dbt-package-testing", "schema": "quickbooks", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`dbt-package-testing`.`quickbooks`.`vendor`"}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"unique_id": "macro.dbt_bigquery.date_sharded_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.grant_access_to": {"unique_id": "macro.dbt_bigquery.grant_access_to", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.get_partitions_metadata": {"unique_id": "macro.dbt_bigquery.get_partitions_metadata", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "name": "get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_catalog": {"unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.partition_by": {"unique_id": "macro.dbt_bigquery.partition_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.cluster_by": {"unique_id": "macro.dbt_bigquery.cluster_by", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery_table_options": {"unique_id": "macro.dbt_bigquery.bigquery_table_options", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_table_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, sql) -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n {{ bigquery_table_options(config, model, temporary) }}\n as (\n {{ sql }}\n );\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_view_as": {"unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_view_as", "macro_sql": "{% macro bigquery__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\n create or replace view {{ relation }}\n {{ bigquery_table_options(config, model, temporary=false) }}\n as {{ sql }};\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_schema": {"unique_id": "macro.dbt_bigquery.bigquery__create_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__create_schema", "macro_sql": "{% macro bigquery__create_schema(relation) -%}\n {{ adapter.create_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_schema": {"unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__drop_relation": {"unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__current_timestamp": {"unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n CURRENT_TIMESTAMP()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__list_schemas": {"unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__persist_docs": {"unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__rename_relation": {"unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__alter_column_type": {"unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "name": "bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_view_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "name": "materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n {% set to_return = create_or_replace_view(run_outside_transaction_hooks=False) %}\n\n {% set target_relation = this.incorporate(type='view') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.make_date_partitioned_table": {"unique_id": "macro.dbt_bigquery.make_date_partitioned_table", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "make_date_partitioned_table", "macro_sql": "{% macro make_date_partitioned_table(model, relation, dates, should_create, verbose=False) %}\n\n {% if should_create %}\n {{ adapter.make_date_partitioned_table(relation) }}\n {% endif %}\n\n {% for date in dates %}\n {% set date = (date | string) %}\n {% if verbose %}\n {% set table_start_time = modules.datetime.datetime.now().strftime(\"%H:%M:%S\") %}\n {{ log(table_start_time ~ ' | -> Running for day ' ~ date, info=True) }}\n {% endif %}\n\n {% set fixed_sql = model['compiled_sql'] | replace('[DBT__PARTITION_DATE]', date) %}\n {% set _ = adapter.execute_model(model, 'table', fixed_sql, decorator=date) %}\n {% endfor %}\n\n {% set num_days = dates | length %}\n {% if num_days == 1 %}\n {% set result_str = 'CREATED 1 PARTITION' %}\n {% else %}\n {% set result_str = 'CREATED ' ~ num_days ~ ' PARTITIONS' %}\n {% endif %}\n\n {{ store_result('main', response=result_str) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_table_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "name": "materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery' -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n {%- set verbose = config.get('verbose', False) -%}\n\n {# partitions: iterate over each partition, running a separate query in a for-loop #}\n {%- set partitions = config.get('partitions') -%}\n\n {% if partitions %}\n {% if partitions is number or partitions is string %}\n {% set partitions = [(partitions | string)] %}\n {% endif %}\n\n {% if partitions is not iterable %}\n {{ exceptions.raise_compiler_error(\"Provided `partitions` configuration is not a list. Got: \" ~ partitions, model) }}\n {% endif %}\n {% endif %}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n Since dbt uses WRITE_TRUNCATE mode for tables, we only need to drop this thing\n if it is not a table. If it _is_ already a table, then we can overwrite it without downtime\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {% if partitions %}\n {# Create the dp-table if 1. it does not exist or 2. it existed, but we just dropped it #}\n {%- set should_create = (old_relation is none or exists_not_as_table) -%}\n {{ make_date_partitioned_table(model, target_relation, partitions, should_create, verbose) }}\n {% else %}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n {% call statement('main') -%}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall -%}\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_copy_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "name": "materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {# there should be exactly one ref or exactly one source #}\n {% set destination = this.incorporate(type='table') %}\n\n {% set dependency_type = none %}\n {% if (model.refs | length) == 1 and (model.sources | length) == 0 %}\n {% set dependency_type = 'ref' %}\n {% elif (model.refs | length) == 0 and (model.sources | length) == 1 %}\n {% set dependency_type = 'source' %}\n {% else %}\n {% set msg %}\n Expected exactly one ref or exactly one source, instead got {{ model.refs | length }} models and {{ model.sources | length }} sources.\n {% endset %}\n {% do exceptions.raise_compiler_error(msg) %}\n {% endif %}\n\n {% if dependency_type == 'ref' %}\n {% set src = ref(*model.refs[0]) %}\n {% else %}\n {% set src = source(*model.sources[0]) %}\n {% endif %}\n\n {%- set result_str = adapter.copy_table(\n src,\n destination,\n config.get('copy_materialization', 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\", default=\"merge\") -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bq_insert_overwrite": {"unique_id": "macro.dbt_bigquery.bq_insert_overwrite", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "bq_insert_overwrite", "macro_sql": "{% macro bq_insert_overwrite(tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns) %}\n {%- set partition_type =\n 'date' if partition_by.data_type in ('timestamp, datetime')\n else partition_by.data_type -%}\n\n {% if partitions is not none and partitions != [] %} {# static #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=true) }}\n\n {% else %} {# dynamic #}\n\n {% set predicate -%}\n {{ partition_by.render(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_type }}>;\n declare _dbt_max_partition {{ partition_by.data_type }};\n\n set _dbt_max_partition = (\n select max({{ partition_by.field }}) from {{ this }}\n );\n\n -- 1. create a temp table\n {{ create_table_as(True, tmp_relation, sql) }}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n array_agg(distinct {{ partition_by.render() }})\n from {{ tmp_relation }}\n );\n\n {#\n TODO: include_sql_header is a hack; consider a better approach that includes\n the sql_header at the materialization-level instead\n #}\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header=false) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "name": "materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery' -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% else %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% if partition_by is none %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite(\n tmp_relation,\n target_relation,\n sql,\n unique_key,\n partition_by,\n partitions,\n dest_columns) %}\n\n {% else %}\n {#-- wrap sql in parens to make it a subquery --#}\n {%- set source_sql -%}\n (\n {{sql}}\n )\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns) %}\n\n {% endif %}\n\n {% endif %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__create_columns": {"unique_id": "macro.dbt_bigquery.bigquery__create_columns", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_bigquery.bigquery__post_snapshot": {"unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "package_name": "dbt_bigquery", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "name": "bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/core.sql", "original_file_path": "macros/core.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list": {"unique_id": "macro.dbt.column_list", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list", "macro_sql": "{% macro column_list(columns) %}\n {%- for col in columns %}\n {{ col.name }} {% if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.column_list_for_create_table": {"unique_id": "macro.dbt.column_list_for_create_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "column_list_for_create_table", "macro_sql": "{% macro column_list_for_create_table(columns) %}\n {%- for col in columns %}\n {{ col.name }} {{ col.data_type }} {%- if not loop.last %},{% endif %}\n {% endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/helpers.sql", "original_file_path": "macros/materializations/helpers.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n ;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/fishtown-analytics/dbt/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\n {%- set ns = namespace() -%} {# handle for-loop scoping with a namespace #}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(col) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/strategies.sql", "original_file_path": "macros/materializations/snapshot/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = snapshot_string_as_time(now) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select \n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n \n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n \n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshot/snapshot.sql", "original_file_path": "macros/materializations/snapshot/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.basic_load_csv_rows": {"unique_id": "macro.dbt.basic_load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "basic_load_csv_rows", "macro_sql": "{% macro basic_load_csv_rows(model, batch_size, agate_table) %}\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 %s\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n {{ return(basic_load_csv_rows(model, 10000, agate_table) )}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/seed/seed.sql", "original_file_path": "macros/materializations/seed/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set agate_table = load_agate_table() -%}\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.incremental_upsert": {"unique_id": "macro.dbt.incremental_upsert", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/helpers.sql", "original_file_path": "macros/materializations/incremental/helpers.sql", "name": "incremental_upsert", "macro_sql": "{% macro incremental_upsert(tmp_relation, target_relation, unique_key=none, statement_name=\"main\") %}\n {%- set dest_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%}\n\n {%- if unique_key is not none -%}\n delete\n from {{ target_relation }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ tmp_relation }}\n );\n {%- endif %}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ tmp_relation }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/incremental/incremental.sql", "original_file_path": "macros/materializations/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(this) %}\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 {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% elif existing_relation.is_view or should_full_refresh() %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set backup_identifier = existing_relation.identifier ~ \"__dbt_backup\" %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n {% do adapter.drop_relation(backup_relation) %}\n\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {% set build_sql = incremental_upsert(tmp_relation, target_relation, unique_key=unique_key) %}\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column in dest_columns -%}\n {{ adapter.quote(column.name) }} = DBT_INTERNAL_SOURCE.{{ adapter.quote(column.name) }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\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{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.common_get_delete_insert_merge_sql": {"unique_id": "macro.dbt.common_get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "common_get_delete_insert_merge_sql", "macro_sql": "{% macro common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n );\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ common_get_delete_insert_merge_sql(target, source, unique_key, dest_columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/common/merge.sql", "original_file_path": "macros/materializations/common/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/table/table.sql", "original_file_path": "macros/materializations/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\n\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\n\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\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(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 {{ create_table_as(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/view.sql", "original_file_path": "macros/materializations/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\n\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"old_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exists for some reason\n {{ adapter.drop_relation(intermediate_relation) }}\n {{ adapter.drop_relation(backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(target_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch(\"handle_existing_table\", packages=['dbt'])(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/materializations/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view(run_outside_transaction_hooks=True) %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n\n {% if run_outside_transaction_hooks %}\n -- no transactions on BigQuery\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n {% endif %}\n\n -- `BEGIN` happens here on Snowflake\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\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 {{ create_view_as(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if run_outside_transaction_hooks %}\n -- No transactions on BigQuery\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n {% endif %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_alias.sql", "original_file_path": "macros/etc/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/query.sql", "original_file_path": "macros/etc/query.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/is_incremental.sql", "original_file_path": "macros/etc/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_schema.sql", "original_file_path": "macros/etc/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/etc/get_custom_database.sql", "original_file_path": "macros/etc/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter '+adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/adapters/common.sql", "original_file_path": "macros/adapters/common.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\n\nselect count(*) as validation_errors\nfrom (\n select {{ column_name }} as id from {{ model }}\n) as child\nleft join (\n select {{ field }} as id from {{ to }}\n) as parent on parent.id = child.id\nwhere child.id is not null\n and parent.id is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/relationships.sql", "original_file_path": "macros/schema_tests/relationships.sql", "name": "test_relationships", "macro_sql": "{% macro test_relationships(model, to, field) %}\n {% set macro = adapter.dispatch('test_relationships') %}\n {{ macro(model, to, field, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/not_null.sql", "original_file_path": "macros/schema_tests/not_null.sql", "name": "test_not_null", "macro_sql": "{% macro test_not_null(model) %}\n {% set macro = adapter.dispatch('test_not_null') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*) as validation_errors\nfrom (\n\n select\n {{ column_name }}\n\n from {{ model }}\n where {{ column_name }} is not null\n group by {{ column_name }}\n having count(*) > 1\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/unique.sql", "original_file_path": "macros/schema_tests/unique.sql", "name": "test_unique", "macro_sql": "{% macro test_unique(model) %}\n {% set macro = adapter.dispatch('test_unique') %}\n {{ macro(model, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, values) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n{% set quote_values = kwargs.get('quote', True) %}\n\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 not in (\n {% for value in values -%}\n {% if quote_values -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n)\n\nselect count(*) as validation_errors\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "macros/schema_tests/accepted_values.sql", "original_file_path": "macros/schema_tests/accepted_values.sql", "name": "test_accepted_values", "macro_sql": "{% macro test_accepted_values(model, values) %}\n {% set macro = adapter.dispatch('test_accepted_values') %}\n {{ macro(model, values, **kwargs) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', packages = dbt_utils._get_utils_namespaces()) (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n \n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', packages = dbt_utils._get_utils_namespaces())(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n concat({{ fields|join(', ') }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.alternative_concat": {"unique_id": "macro.dbt_utils.alternative_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "alternative_concat", "macro_sql": "{% macro alternative_concat(fields) %}\n {{ fields|join(' || ') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__concat": {"unique_id": "macro.dbt_utils.redshift__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "redshift__concat", "macro_sql": "{% macro redshift__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__concat": {"unique_id": "macro.dbt_utils.snowflake__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "snowflake__concat", "macro_sql": "{% macro snowflake__concat(fields) %}\n {{ dbt_utils.alternative_concat(fields) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', packages = dbt_utils._get_utils_namespaces()) (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', packages = dbt_utils._get_utils_namespaces())(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', packages = dbt_utils._get_utils_namespaces())()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', packages = dbt_utils._get_utils_namespaces()) (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', packages = dbt_utils._get_utils_namespaces())(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', packages = dbt_utils._get_utils_namespaces()) (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', packages = dbt_utils._get_utils_namespaces()) (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', packages = dbt_utils._get_utils_namespaces()) (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', packages = dbt_utils._get_utils_namespaces()) (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', packages = dbt_utils._get_utils_namespaces())()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', packages = dbt_utils._get_utils_namespaces()) (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._get_utils_namespaces": {"unique_id": "macro.dbt_utils._get_utils_namespaces", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_get_utils_namespaces.sql", "original_file_path": "macros/cross_db_utils/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', packages = dbt_utils._get_utils_namespaces()) (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n {{ exceptions.raise_compiler_error(\n \"dbt_utils.last_day is not supported for datepart 'quarter' on this adapter\") }}\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', packages = dbt_utils._get_utils_namespaces()) (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', packages = dbt_utils._get_utils_namespaces()) (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) %}\n date_trunc('{{datepart}}', {{date}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) %}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', packages = dbt_utils._get_utils_namespaces())(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', packages = dbt_utils._get_utils_namespaces())(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}};\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_log_format.sql", "original_file_path": "macros/logger/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', packages = dbt_utils._get_utils_namespaces())(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/pretty_time.sql", "original_file_path": "macros/logger/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', packages = dbt_utils._get_utils_namespaces())(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/logger/log_info.sql", "original_file_path": "macros/logger/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', packages = dbt_utils._get_utils_namespaces())(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{dbt_utils.datediff(start_date, end_date, datepart)}}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', packages = dbt_utils._get_utils_namespaces())(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/datetime/date_spine.sql", "original_file_path": "macros/datetime/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n/*\ncall as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n)\n\n*/\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt_utils.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed = \n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n \n-%}\n\n \n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n \n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', packages = dbt_utils._get_utils_namespaces())(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', packages = dbt_utils._get_utils_namespaces())(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1,lon1,lat2,lon2) -%}\n {{ return(adapter.dispatch('haversine_distance', packages = dbt_utils._get_utils_namespaces())(lat1,lon1,lat2,lon2)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/geo/haversine_distance.sql", "original_file_path": "macros/geo/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1,lon1,lat2,lon2) -%}\n\n 2 * 3961 * asin(sqrt((sin(radians(({{lat2}} - {{lat1}}) / 2))) ^ 2 +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n (sin(radians(({{lon2}} - {{lon1}}) / 2))) ^ 2))\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% macro test_equal_rowcount(model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equal_rowcount.sql", "original_file_path": "macros/schema_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model) %}\n\n{% set compare_model = kwargs.get('compare_model', kwargs.get('arg')) %}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select abs(\n (select count_a from a) -\n (select count_b from b)\n )\n as diff_count\n\n)\n\nselect diff_count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% macro test_relationships_where(model, to, field) %}\n {{ return(adapter.dispatch('test_relationships_where', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/relationships_where.sql", "original_file_path": "macros/schema_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, to, field) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\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{% set from_condition = kwargs.get('from_condition', \"1=1\") %}\n{% set to_condition = kwargs.get('to_condition', \"1=1\") %}\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 count(*) from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "test_recency", "macro_sql": "{% macro test_recency(model, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', packages = dbt_utils._get_utils_namespaces())(model, datepart, interval, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/recency.sql", "original_file_path": "macros/schema_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, datepart, interval) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('field')) %}\n\nselect\n case when count(*) > 0 then 0\n else 1\n end as error_result\nfrom {{model}}\nwhere {{column_name}} >=\n {{dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp())}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% macro test_not_constant(model) %}\n {{ return(adapter.dispatch('test_not_constant', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/not_constant.sql", "original_file_path": "macros/schema_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\n\nfrom (\n\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count(distinct {{ column_name }}) = 1\n\n ) validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% macro test_unique_where(model) %}\r\n {{ return(adapter.dispatch('test_unique_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_unique_where.sql", "original_file_path": "macros/schema_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom (\r\n\r\n select\r\n {{ column_name }}\r\n\r\n from {{ model }}\r\n where {{ column_name }} is not null\r\n {% if where %} and {{ where }} {% endif %}\r\n group by {{ column_name }}\r\n having count(*) > 1\r\n\r\n) validation_errors\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% macro test_at_least_one(model) %}\n {{ return(adapter.dispatch('test_at_least_one', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/at_least_one.sql", "original_file_path": "macros/schema_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n\nselect count(*)\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% macro test_unique_combination_of_columns(model, quote_columns = false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', packages = dbt_utils._get_utils_namespaces())(model, quote_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/unique_combination_of_columns.sql", "original_file_path": "macros/schema_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, quote_columns = false) %}\n\n{%- set columns = kwargs.get('combination_of_columns', kwargs.get('arg')) %}\n\n{% if not quote_columns %}\n {%- set column_list=columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in 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\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect count(*)\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% macro test_cardinality_equality(model, to, field) %}\n\n {{ return(adapter.dispatch('test_cardinality_equality', packages = dbt_utils._get_utils_namespaces())(model, to, field, **kwargs)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/cardinality_equality.sql", "original_file_path": "macros/schema_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, to, field) %}\n\n{# T-SQL doesn't let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('from')) %}\n\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 {{ column_name }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect count(*)\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% macro test_expression_is_true(model, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', packages = dbt_utils._get_utils_namespaces())(model, condition, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/expression_is_true.sql", "original_file_path": "macros/schema_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, condition) %}\n\n{% set expression = kwargs.get('expression', kwargs.get('arg')) %}\n\nwith meet_condition as (\n\n select * from {{ model }} where {{ condition }}\n\n),\nvalidation_errors as (\n\n select\n *\n from meet_condition\n where not({{expression}})\n\n)\n\nselect count(*)\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% macro test_not_null_where(model) %}\r\n {{ return(adapter.dispatch('test_not_null_where', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/test_not_null_where.sql", "original_file_path": "macros/schema_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model) %}\r\n\r\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\r\n{% set where = kwargs.get('where', kwargs.get('arg')) %}\r\n\r\nselect count(*)\r\nfrom {{ model }}\r\nwhere {{ column_name }} is null\r\n{% if where %} and {{ where }} {% endif %}\r\n\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "test_equality", "macro_sql": "{% macro test_equality(model) %}\n {{ return(adapter.dispatch('test_equality', packages = dbt_utils._get_utils_namespaces())(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/equality.sql", "original_file_path": "macros/schema_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model) %}\n\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{%- set compare_columns = kwargs.get('compare_columns', None) -%}\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_model = kwargs.get('compare_model', kwargs.get('arg')) %}\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select * from a_minus_b\n union all\n select * from b_minus_a\n\n),\n\nfinal as (\n\n select (select count(*) from unioned) +\n (select abs(\n (select count(*) from a_minus_b) -\n (select count(*) from b_minus_a)\n ))\n as count\n\n)\n\nselect count from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% macro test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed') %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', packages = dbt_utils._get_utils_namespaces())(model, lower_bound_column, upper_bound_column, partition_by, gaps)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/schema_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/schema_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed') %}\n\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\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 }},\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions nore cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound < upper_bound,\n false\n ) as lower_bound_less_than_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_less_than_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect count(*) from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', packages = dbt_utils._get_utils_namespaces())(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', packages = dbt_utils._get_utils_namespaces())(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', packages = dbt_utils._get_utils_namespaces())(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * pow(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', packages = dbt_utils._get_utils_namespaces())(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[]) -%}\n {{ return(adapter.dispatch('star', packages = dbt_utils._get_utils_namespaces())(from, relation_alias, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n\n {%- for col in cols -%}\n\n {%- if col.column not in except -%}\n {% do include_cols.append(col.column) %}\n\n {%- endif %}\n {%- endfor %}\n\n {%- for col in include_cols %}\n\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n\n {%- endfor -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', packages = dbt_utils._get_utils_namespaces())(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt_utils.type_string() }}) as {{ field_name }},\n cast({{ col.column }} as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\n {{ return(adapter.dispatch('union_relations', packages = dbt_utils._get_utils_namespaces())(relations, column_override, include, exclude, source_column_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation') -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', packages = dbt_utils._get_utils_namespaces())(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', packages = dbt_utils._get_utils_namespaces())(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', packages = dbt_utils._get_utils_namespaces())(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', packages = dbt_utils._get_utils_namespaces())(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', packages = dbt_utils._get_utils_namespaces())\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as \"table_type\"\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n case table_type\n when 'BASE TABLE' then 'table'\n else lower(table_type)\n end as table_type\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, max_records=none, default=none) -%}\n {{ return(adapter.dispatch('get_column_values', packages = dbt_utils._get_utils_namespaces())(table, column, max_records, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, max_records=none, default=none) -%}\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\n {%- set target_relation = adapter.get_relation(database=table.database,\n schema=table.schema,\n identifier=table.identifier) -%}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not target_relation and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ table ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not target_relation and default is not none -%}\n\n {{ log(\"Relation \" ~ table ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n group by 1\n order by count(*) desc\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', packages = dbt_utils._get_utils_namespaces())(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for v in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ v }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ v ~ suffix) }}\n {% else %}\n as {{prefix ~ v ~ suffix }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', packages = dbt_utils._get_utils_namespaces())(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', packages = fivetran_utils._get_utils_namespaces()) (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('datediff', packages = fivetran_utils._get_utils_namespaces())(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__datediff": {"unique_id": "macro.fivetran_utils.postgres__datediff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.generate_columns_macro": {"unique_id": "macro.fivetran_utils.generate_columns_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/generate_columns_macro.sql", "original_file_path": "macros/generate_columns_macro.sql", "name": "generate_columns_macro", "macro_sql": "{% macro generate_columns_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set columns = get_columns_for_macro(table_name, schema_name, database_name) %}\n\n{% set jinja_macro=[] %}\n\n{% do jinja_macro.append('{% macro get_' ~ table_name ~ '_columns() %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% set columns = [') %}\n\n{% for col in columns %}\n{% do jinja_macro.append(' ' ~ col ~ (',' if not loop.last)) %}\n{% endfor %}\n\n{% do jinja_macro.append('] %}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{{ return(columns) }}') %}\n{% do jinja_macro.append('') %}\n{% do jinja_macro.append('{% endmacro %}') %}\n\n{% if execute %}\n\n {% set joined = jinja_macro | join ('\\n') %}\n {{ log(joined, info=True) }}\n {% do return(joined) %}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', packages = fivetran_utils._get_utils_namespaces()) (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.snowflake__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "snowflake__get_columns_for_macro", "macro_sql": "{% macro snowflake__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'text' then 'dbt_utils.type_string()' \n when lower(data_type) = 'boolean' then '\"boolean\"'\n when lower(data_type) = 'number' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float' then 'dbt_utils.type_float()' \n when lower(data_type) = 'date' then '\"date\"'\n end,\n '}')\nfrom {{ database_name }}.information_schema.columns\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__get_columns_for_macro": {"unique_id": "macro.fivetran_utils.bigquery__get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "bigquery__get_columns_for_macro", "macro_sql": "{% macro bigquery__get_columns_for_macro(table_name, schema_name, database_name=target.database) %}\n\n{% set query %}\n\nselect\n concat(\n '{\"name\": \"', \n lower(column_name), \n '\", \"datatype\": ',\n case\n when lower(data_type) like '%timestamp%' then 'dbt_utils.type_timestamp()' \n when lower(data_type) = 'string' then 'dbt_utils.type_string()' \n when lower(data_type) = 'bool' then '\"boolean\"'\n when lower(data_type) = 'numeric' then 'dbt_utils.type_numeric()' \n when lower(data_type) = 'float64' then 'dbt_utils.type_float()' \n when lower(data_type) = 'int64' then 'dbt_utils.type_string()' \n when lower(data_type) = 'date' then '\"date\"' \n when lower(data_type) = 'datetime' then '\"datetime\"' \n end,\n '}')\nfrom `{{ database_name }}`.{{ schema_name }}.INFORMATION_SCHEMA.COLUMNS\nwhere lower(table_name) = '{{ table_name }}'\nand lower(table_schema) = '{{ schema_name }}'\norder by 1\n\n{% endset %}\n\n{% set results = run_query(query) %}\n{% set results_list = results.columns[0].values() %}}\n\n{{ return(results_list) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.get_columns_for_macro": {"unique_id": "macro.fivetran_utils.get_columns_for_macro", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/get_columns_for_macro.sql", "original_file_path": "macros/get_columns_for_macro.sql", "name": "get_columns_for_macro", "macro_sql": "{% macro get_columns_for_macro(table_name, schema_name, database_name) -%}\n {{ return(adapter.dispatch('get_columns_for_macro')(table_name, schema_name, database_name)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type == 'bigquery' %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', packages = fivetran_utils._get_utils_namespaces()) (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', packages = fivetran_utils._get_utils_namespaces()) (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', packages = fivetran_utils._get_utils_namespaces()) (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils._get_utils_namespaces": {"unique_id": "macro.fivetran_utils._get_utils_namespaces", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/_get_utils_namespaces.sql", "original_file_path": "macros/_get_utils_namespaces.sql", "name": "_get_utils_namespaces", "macro_sql": "{% macro _get_utils_namespaces() %}\n {% set override_namespaces = var('dbt_utils_dispatch_list', []) %}\n {% do return(override_namespaces + ['dbt_utils', 'fivetran_utils']) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', packages = fivetran_utils._get_utils_namespaces()) (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.snowflake__array_agg": {"unique_id": "macro.fivetran_utils.snowflake__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "snowflake__array_agg", "macro_sql": "{% macro snowflake__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.bigquery__array_agg": {"unique_id": "macro.fivetran_utils.bigquery__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "bigquery__array_agg", "macro_sql": "{% macro bigquery__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/QuickBooks/dbt_quickbooks_source/integration_tests/dbt_modules/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": []}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--models` 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/overview)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [chat](https://community.getdbt.com/) on Slack for live questions and support."}}, "exposures": {}, "selectors": {}, "disabled": [], "parent_map": {"seed.quickbooks_source_integration_tests.bill_payment_data": [], "seed.quickbooks_source_integration_tests.bundle_data": [], "seed.quickbooks_source_integration_tests.bill_payment_line_data": [], "seed.quickbooks_source_integration_tests.payment_line_data": [], "seed.quickbooks_source_integration_tests.vendor_data": [], "seed.quickbooks_source_integration_tests.address_data": [], "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": [], "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_source_integration_tests.invoice_data": [], "seed.quickbooks_source_integration_tests.payment_data": [], "seed.quickbooks_source_integration_tests.invoice_line_data": [], "seed.quickbooks_source_integration_tests.deposit_line_data": [], "seed.quickbooks_source_integration_tests.estimate_line_data": [], "seed.quickbooks_source_integration_tests.purchase_data": [], "seed.quickbooks_source_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_source_integration_tests.credit_memo_line_data": [], "seed.quickbooks_source_integration_tests.bill_data": [], "seed.quickbooks_source_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_source_integration_tests.vendor_credit_data": [], "seed.quickbooks_source_integration_tests.customer_data": [], "seed.quickbooks_source_integration_tests.estimate_data": [], "seed.quickbooks_source_integration_tests.purchase_line_data": [], "seed.quickbooks_source_integration_tests.journal_entry_line_data": [], "seed.quickbooks_source_integration_tests.journal_entry_data": [], "seed.quickbooks_source_integration_tests.bill_line_data": [], "seed.quickbooks_source_integration_tests.bundle_item_data": [], "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_source_integration_tests.account_data": [], "seed.quickbooks_source_integration_tests.purchase_order_line_data": [], "seed.quickbooks_source_integration_tests.transfer_data": [], "seed.quickbooks_source_integration_tests.purchase_order_data": [], "seed.quickbooks_source_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_source_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_source_integration_tests.credit_memo_data": [], "seed.quickbooks_source_integration_tests.department_data": [], "seed.quickbooks_source_integration_tests.item_data": [], "seed.quickbooks_source_integration_tests.sales_receipt_data": [], "seed.quickbooks_source_integration_tests.deposit_data": [], "seed.quickbooks_source_integration_tests.refund_receipt_data": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["seed.quickbooks_source_integration_tests.vendor_credit_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["seed.quickbooks_source_integration_tests.refund_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["seed.quickbooks_source_integration_tests.estimate_line_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_line_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["seed.quickbooks_source_integration_tests.credit_memo_line_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["seed.quickbooks_source_integration_tests.journal_entry_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["seed.quickbooks_source_integration_tests.invoice_line_bundle_data"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["seed.quickbooks_source_integration_tests.payment_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["seed.quickbooks_source_integration_tests.invoice_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["seed.quickbooks_source_integration_tests.deposit_line_data"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["seed.quickbooks_source_integration_tests.customer_data"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["seed.quickbooks_source_integration_tests.bill_line_data"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["seed.quickbooks_source_integration_tests.item_data"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["seed.quickbooks_source_integration_tests.account_data"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["seed.quickbooks_source_integration_tests.vendor_credit_line_data"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["seed.quickbooks_source_integration_tests.department_data"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["seed.quickbooks_source_integration_tests.bundle_data"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["seed.quickbooks_source_integration_tests.bundle_item_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["seed.quickbooks_source_integration_tests.bill_payment_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["seed.quickbooks_source_integration_tests.estimate_data"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["seed.quickbooks_source_integration_tests.purchase_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["seed.quickbooks_source_integration_tests.credit_memo_data"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["seed.quickbooks_source_integration_tests.bill_data"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["seed.quickbooks_source_integration_tests.transfer_data"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["seed.quickbooks_source_integration_tests.vendor_data"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["seed.quickbooks_source_integration_tests.purchase_line_data"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["seed.quickbooks_source_integration_tests.address_data"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["seed.quickbooks_source_integration_tests.payment_line_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["seed.quickbooks_source_integration_tests.refund_receipt_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["seed.quickbooks_source_integration_tests.sales_receipt_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["seed.quickbooks_source_integration_tests.bill_payment_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["seed.quickbooks_source_integration_tests.journal_entry_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["seed.quickbooks_source_integration_tests.deposit_data"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.bill_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.invoice_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["seed.quickbooks_source_integration_tests.sales_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["seed.quickbooks_source_integration_tests.invoice_data"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.unique_stg_quickbooks__address_address_id": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__item_item_id": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_source_integration_tests.bill_payment_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "seed.quickbooks_source_integration_tests.bundle_data": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "seed.quickbooks_source_integration_tests.bill_payment_line_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "seed.quickbooks_source_integration_tests.payment_line_data": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "seed.quickbooks_source_integration_tests.vendor_data": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"], "seed.quickbooks_source_integration_tests.address_data": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "seed.quickbooks_source_integration_tests.invoice_data": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "seed.quickbooks_source_integration_tests.payment_data": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "seed.quickbooks_source_integration_tests.invoice_line_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "seed.quickbooks_source_integration_tests.deposit_line_data": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "seed.quickbooks_source_integration_tests.estimate_line_data": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "seed.quickbooks_source_integration_tests.purchase_data": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "seed.quickbooks_source_integration_tests.refund_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "seed.quickbooks_source_integration_tests.credit_memo_line_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "seed.quickbooks_source_integration_tests.bill_data": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "seed.quickbooks_source_integration_tests.bill_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.vendor_credit_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "seed.quickbooks_source_integration_tests.customer_data": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "seed.quickbooks_source_integration_tests.estimate_data": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "seed.quickbooks_source_integration_tests.purchase_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "seed.quickbooks_source_integration_tests.journal_entry_line_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "seed.quickbooks_source_integration_tests.journal_entry_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "seed.quickbooks_source_integration_tests.bill_line_data": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "seed.quickbooks_source_integration_tests.bundle_item_data": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.account_data": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "seed.quickbooks_source_integration_tests.transfer_data": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "seed.quickbooks_source_integration_tests.sales_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "seed.quickbooks_source_integration_tests.vendor_credit_line_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "seed.quickbooks_source_integration_tests.credit_memo_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "seed.quickbooks_source_integration_tests.department_data": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "seed.quickbooks_source_integration_tests.item_data": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "seed.quickbooks_source_integration_tests.sales_receipt_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "seed.quickbooks_source_integration_tests.deposit_data": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "seed.quickbooks_source_integration_tests.refund_receipt_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "model.quickbooks_source.stg_quickbooks__transfer": ["test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id", "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "model.quickbooks_source.stg_quickbooks__payment_line": ["test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id"], "model.quickbooks_source.stg_quickbooks__vendor": ["test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id", "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id"], "model.quickbooks_source.stg_quickbooks__estimate": ["test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id", "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "model.quickbooks_source.stg_quickbooks__bundle": ["test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id", "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id"], "model.quickbooks_source.stg_quickbooks__department": [], "model.quickbooks_source.stg_quickbooks__purchase_line": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id"], "model.quickbooks_source.stg_quickbooks__purchase": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id", "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id", "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id", "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "model.quickbooks_source.stg_quickbooks__invoice": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id", "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id", "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "model.quickbooks_source.stg_quickbooks__account": ["test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id", "test.quickbooks_source.unique_stg_quickbooks__account_account_id"], "model.quickbooks_source.stg_quickbooks__payment": ["test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id", "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "model.quickbooks_source.stg_quickbooks__address": ["test.quickbooks_source.not_null_stg_quickbooks__address_address_id", "test.quickbooks_source.unique_stg_quickbooks__address_address_id"], "model.quickbooks_source.stg_quickbooks__bill": ["test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id", "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id"], "model.quickbooks_source.stg_quickbooks__bill_line": ["test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id", "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id", "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": [], "model.quickbooks_source.stg_quickbooks__deposit": ["test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id", "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id"], "model.quickbooks_source.stg_quickbooks__item": ["test.quickbooks_source.not_null_stg_quickbooks__item_item_id", "test.quickbooks_source.unique_stg_quickbooks__item_item_id"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "model.quickbooks_source.stg_quickbooks__customer": ["test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id", "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order_line", "model.quickbooks_source.stg_quickbooks__purchase_order_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order", "model.quickbooks_source.stg_quickbooks__purchase_order"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue": [], "test.quickbooks_source.unique_stg_quickbooks__address_address_id": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id": [], "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id": [], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id": [], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id": [], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id": [], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id": [], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id": [], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id": [], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id": [], "test.quickbooks_source.unique_stg_quickbooks__item_item_id": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit": [], "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id": [], "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id": [], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id": [], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id": [], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id": [], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v6.json", "dbt_version": "1.2.1", "generated_at": "2022-09-26T20:48:40.698121Z", "invocation_id": "2e1a352c-57aa-4f64-a60f-68b0a866a677", "env": {}, "project_id": "aa9386a7fba3fd9e54dc759cf0b5037c", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.quickbooks_source_integration_tests.bill_payment_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bill_payment_data.csv", "original_file_path": "seeds/bill_payment_data.csv", "name": "bill_payment_data", "alias": "bill_payment_data", "checksum": {"name": "sha256", "checksum": "654e27fe99f7891483ba67ae67202f00a166df46c6463965f831bd47d3bc53cf"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9131231, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_data\""}, "seed.quickbooks_source_integration_tests.bundle_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bundle_data.csv", "original_file_path": "seeds/bundle_data.csv", "name": "bundle_data", "alias": "bundle_data", "checksum": {"name": "sha256", "checksum": "090d802f05c558f45f05a760b5fb1fa879dfeb26c737e6356dcf6bfcb9fbbefb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9183202, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bundle_data\""}, "seed.quickbooks_source_integration_tests.bill_payment_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bill_payment_line_data.csv", "original_file_path": "seeds/bill_payment_line_data.csv", "name": "bill_payment_line_data", "alias": "bill_payment_line_data", "checksum": {"name": "sha256", "checksum": "8ecb4d10c5ec0330ea7aac0105eaad136a9e6ef29461da187a6a38037e956375"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.919276, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_line_data\""}, "seed.quickbooks_source_integration_tests.payment_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "payment_line_data.csv", "original_file_path": "seeds/payment_line_data.csv", "name": "payment_line_data", "alias": "payment_line_data", "checksum": {"name": "sha256", "checksum": "6e54b93beaddd05e86b071eb43833845bfc76a841b2780e3e1059f6d661cd238"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.920181, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"payment_line_data\""}, "seed.quickbooks_source_integration_tests.vendor_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "vendor_data.csv", "original_file_path": "seeds/vendor_data.csv", "name": "vendor_data", "alias": "vendor_data", "checksum": {"name": "sha256", "checksum": "98ce313c6a3acf1262de91d25905b85fe760227a534703d9c6bc0e4149b055b5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.921087, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_data\""}, "seed.quickbooks_source_integration_tests.address_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "address_data"], "unique_id": "seed.quickbooks_source_integration_tests.address_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "address_data.csv", "original_file_path": "seeds/address_data.csv", "name": "address_data", "alias": "address_data", "checksum": {"name": "sha256", "checksum": "2b7bfb3f76e41e3fee0443c10a939053b0edb31b9f4be1bcd0af8d4b686da7b0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.922131, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"address_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_linked_txn_data.csv", "original_file_path": "seeds/purchase_order_linked_txn_data.csv", "name": "purchase_order_linked_txn_data", "alias": "purchase_order_linked_txn_data", "checksum": {"name": "sha256", "checksum": "783640948c1f42079de535df23609064f3195e20ce34dffe56ac54f0c0f16ada"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.923061, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_bundle_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "invoice_line_bundle_data.csv", "original_file_path": "seeds/invoice_line_bundle_data.csv", "name": "invoice_line_bundle_data", "alias": "invoice_line_bundle_data", "checksum": {"name": "sha256", "checksum": "f1cdc81c2fb1ec4f76c5226e2f5e4ed6f17f7b446cb53cfa539d8caafb252a5c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.924, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_bundle_data\""}, "seed.quickbooks_source_integration_tests.invoice_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "invoice_data.csv", "original_file_path": "seeds/invoice_data.csv", "name": "invoice_data", "alias": "invoice_data", "checksum": {"name": "sha256", "checksum": "05a4273632f65bdeaff5845d43bb3fc5a68efa8985f86e054af045d810ecb652"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.924931, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_data\""}, "seed.quickbooks_source_integration_tests.payment_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "payment_data"], "unique_id": "seed.quickbooks_source_integration_tests.payment_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "payment_data.csv", "original_file_path": "seeds/payment_data.csv", "name": "payment_data", "alias": "payment_data", "checksum": {"name": "sha256", "checksum": "8c2df9d7db2b4668ddbd1e1e3635cbaf40c798e19be2a83f65e09988771ebb38"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9259672, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"payment_data\""}, "seed.quickbooks_source_integration_tests.invoice_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "invoice_line_data.csv", "original_file_path": "seeds/invoice_line_data.csv", "name": "invoice_line_data", "alias": "invoice_line_data", "checksum": {"name": "sha256", "checksum": "267f7835012af57f5d0b6dd927fb6e0ea7094d780ab551d7147e2bff48bcf063"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.926899, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_data\""}, "seed.quickbooks_source_integration_tests.deposit_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "deposit_line_data.csv", "original_file_path": "seeds/deposit_line_data.csv", "name": "deposit_line_data", "alias": "deposit_line_data", "checksum": {"name": "sha256", "checksum": "43cf2e49d2ccc28c38ba7db60582b36e46c0ec96827b475e145975fdf8bf9d4e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.927827, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"deposit_line_data\""}, "seed.quickbooks_source_integration_tests.estimate_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "estimate_line_data.csv", "original_file_path": "seeds/estimate_line_data.csv", "name": "estimate_line_data", "alias": "estimate_line_data", "checksum": {"name": "sha256", "checksum": "cff0f0d902a16e9ab0b877d174dd67536537fc669c16505c2efadb0721ce6c26"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9287622, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"estimate_line_data\""}, "seed.quickbooks_source_integration_tests.purchase_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "purchase_data.csv", "original_file_path": "seeds/purchase_data.csv", "name": "purchase_data", "alias": "purchase_data", "checksum": {"name": "sha256", "checksum": "4f3426746d9b8739cf9538e94b0a79fe7894be76decdf43e920716dfa200d131"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.929823, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_data\""}, "seed.quickbooks_source_integration_tests.refund_receipt_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "refund_receipt_line_data.csv", "original_file_path": "seeds/refund_receipt_line_data.csv", "name": "refund_receipt_line_data", "alias": "refund_receipt_line_data", "checksum": {"name": "sha256", "checksum": "8a67266f87e49dda0de57a6d66b4c1a053af545a6c8d394f8df6470b98cd31c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.930743, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_line_data\""}, "seed.quickbooks_source_integration_tests.credit_memo_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "credit_memo_line_data.csv", "original_file_path": "seeds/credit_memo_line_data.csv", "name": "credit_memo_line_data", "alias": "credit_memo_line_data", "checksum": {"name": "sha256", "checksum": "01898bc6786c3c48ebf5aa4170ea54257dd66e6fc38931067c9012bc639f6994"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.931672, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_line_data\""}, "seed.quickbooks_source_integration_tests.bill_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bill_data.csv", "original_file_path": "seeds/bill_data.csv", "name": "bill_data", "alias": "bill_data", "checksum": {"name": "sha256", "checksum": "af6dcdb238e4819003cc182dc5f39a82a61ab19d1299752afc90d49578cfc79b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.93261, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_data\""}, "seed.quickbooks_source_integration_tests.bill_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bill_linked_txn_data.csv", "original_file_path": "seeds/bill_linked_txn_data.csv", "name": "bill_linked_txn_data", "alias": "bill_linked_txn_data", "checksum": {"name": "sha256", "checksum": "14f88fc0716d3c253043a68af9b026ab54a93a33784c682b6ec700671f1e03c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9335701, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.vendor_credit_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "vendor_credit_data.csv", "original_file_path": "seeds/vendor_credit_data.csv", "name": "vendor_credit_data", "alias": "vendor_credit_data", "checksum": {"name": "sha256", "checksum": "ccc4a1ca3967e3eb7f61d2831242f07b1e5a77006dd4312a17fd36e7ea008bea"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.934614, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_data\""}, "seed.quickbooks_source_integration_tests.customer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "customer_data"], "unique_id": "seed.quickbooks_source_integration_tests.customer_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "customer_data.csv", "original_file_path": "seeds/customer_data.csv", "name": "customer_data", "alias": "customer_data", "checksum": {"name": "sha256", "checksum": "2b72eabf58923823033e461d1960295c156b31bf5ace046fc388c336fd96a29d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9355452, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"customer_data\""}, "seed.quickbooks_source_integration_tests.estimate_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "estimate_data"], "unique_id": "seed.quickbooks_source_integration_tests.estimate_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "estimate_data.csv", "original_file_path": "seeds/estimate_data.csv", "name": "estimate_data", "alias": "estimate_data", "checksum": {"name": "sha256", "checksum": "06ca472200a91b5758a0e9530e6c810a09e466cbf1aa7fbac215fee8a9f4d737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.936446, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"estimate_data\""}, "seed.quickbooks_source_integration_tests.purchase_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "purchase_line_data.csv", "original_file_path": "seeds/purchase_line_data.csv", "name": "purchase_line_data", "alias": "purchase_line_data", "checksum": {"name": "sha256", "checksum": "33355dd453e68ac5a5afa2f71e3c515dc414cdd55a489c65d2c2c4fa06fd18e7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9373388, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_line_data\""}, "seed.quickbooks_source_integration_tests.journal_entry_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "journal_entry_line_data.csv", "original_file_path": "seeds/journal_entry_line_data.csv", "name": "journal_entry_line_data", "alias": "journal_entry_line_data", "checksum": {"name": "sha256", "checksum": "a17bbafe90f2f00403538657b9f45c14d929ce2d9b5b29a55828855756024516"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.938355, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_line_data\""}, "seed.quickbooks_source_integration_tests.journal_entry_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "journal_entry_data"], "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "journal_entry_data.csv", "original_file_path": "seeds/journal_entry_data.csv", "name": "journal_entry_data", "alias": "journal_entry_data", "checksum": {"name": "sha256", "checksum": "6f717632a6fe0901786fbdfed63db69af1c928331ed9cb83f9fd389fe2b9ab83"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.939264, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_data\""}, "seed.quickbooks_source_integration_tests.bill_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bill_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bill_line_data.csv", "original_file_path": "seeds/bill_line_data.csv", "name": "bill_line_data", "alias": "bill_line_data", "checksum": {"name": "sha256", "checksum": "ea538cd77d1034c9b0d941677d4f92040a5e73cf839135ac7173a0b30649dbd1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.940151, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_line_data\""}, "seed.quickbooks_source_integration_tests.bundle_item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "bundle_item_data"], "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "bundle_item_data.csv", "original_file_path": "seeds/bundle_item_data.csv", "name": "bundle_item_data", "alias": "bundle_item_data", "checksum": {"name": "sha256", "checksum": "69218d4dc89cf8da55d1a5aab12bbe45129b48377fa7615f0030616d8c34fe9d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9410381, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bundle_item_data\""}, "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "invoice_linked_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "invoice_linked_txn_data.csv", "original_file_path": "seeds/invoice_linked_txn_data.csv", "name": "invoice_linked_txn_data", "alias": "invoice_linked_txn_data", "checksum": {"name": "sha256", "checksum": "88dda316adf9a5921231dbe5bd5d0c425391ccf9b72a7d6c937155d67b3b45ba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9420469, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_linked_txn_data\""}, "seed.quickbooks_source_integration_tests.account_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "account_data"], "unique_id": "seed.quickbooks_source_integration_tests.account_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "account_data.csv", "original_file_path": "seeds/account_data.csv", "name": "account_data", "alias": "account_data", "checksum": {"name": "sha256", "checksum": "21711c5f4113de909d70da0ef80633513b932ca8db2558503e1cc0e4bb663a8b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9429471, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"account_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_line_data.csv", "original_file_path": "seeds/purchase_order_line_data.csv", "name": "purchase_order_line_data", "alias": "purchase_order_line_data", "checksum": {"name": "sha256", "checksum": "39d5f88917f7d5d8ec70465d8569a38bd19d72bfb26bc495f3231b3e6599c945"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.943855, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_line_data\""}, "seed.quickbooks_source_integration_tests.transfer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "transfer_data"], "unique_id": "seed.quickbooks_source_integration_tests.transfer_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "transfer_data.csv", "original_file_path": "seeds/transfer_data.csv", "name": "transfer_data", "alias": "transfer_data", "checksum": {"name": "sha256", "checksum": "79139d758013f9fe26aec7a1283224df79f5bb780c3b896ed8ead578bc4f8ff5"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.944749, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"transfer_data\""}, "seed.quickbooks_source_integration_tests.purchase_order_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "purchase_order_data"], "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "purchase_order_data.csv", "original_file_path": "seeds/purchase_order_data.csv", "name": "purchase_order_data", "alias": "purchase_order_data", "checksum": {"name": "sha256", "checksum": "41146f57f7697001a690027ea7182ef76dd5d591bb5dce7438edefb3e5fd0101"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9459012, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_data\""}, "seed.quickbooks_source_integration_tests.sales_receipt_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "sales_receipt_line_data.csv", "original_file_path": "seeds/sales_receipt_line_data.csv", "name": "sales_receipt_line_data", "alias": "sales_receipt_line_data", "checksum": {"name": "sha256", "checksum": "19895ca1cfb2ebe0a4e8ef0e5c5ef9c0dbb505053cc4b98bb06de8bd3ead523f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9468522, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_line_data\""}, "seed.quickbooks_source_integration_tests.vendor_credit_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "vendor_credit_line_data"], "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "vendor_credit_line_data.csv", "original_file_path": "seeds/vendor_credit_line_data.csv", "name": "vendor_credit_line_data", "alias": "vendor_credit_line_data", "checksum": {"name": "sha256", "checksum": "8c60276eb72f29fcd60b6aff2615648b71ce47e0b738331b54f86c988a979737"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.947778, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_line_data\""}, "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_card_payment_txn_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "credit_card_payment_txn_data.csv", "original_file_path": "seeds/credit_card_payment_txn_data.csv", "name": "credit_card_payment_txn_data", "alias": "credit_card_payment_txn_data", "checksum": {"name": "sha256", "checksum": "df04fb5f0ab05dd015e6476d647f9564edf6f015cd1d429ceded40e9bfd915b9"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9487, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_card_payment_txn_data\""}, "seed.quickbooks_source_integration_tests.credit_memo_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "credit_memo_data"], "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "credit_memo_data.csv", "original_file_path": "seeds/credit_memo_data.csv", "name": "credit_memo_data", "alias": "credit_memo_data", "checksum": {"name": "sha256", "checksum": "3cef678ada5ab1119a096e5f6bea67c6680466ff2a21807512f1a4dba83b6139"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.95004, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_data\""}, "seed.quickbooks_source_integration_tests.department_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "department_data"], "unique_id": "seed.quickbooks_source_integration_tests.department_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "department_data.csv", "original_file_path": "seeds/department_data.csv", "name": "department_data", "alias": "department_data", "checksum": {"name": "sha256", "checksum": "079a79543e6cfcdac83eeeeb9672451756cc6c48e7d4c572d9f761b9314b18d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.950985, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"department_data\""}, "seed.quickbooks_source_integration_tests.item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "item_data"], "unique_id": "seed.quickbooks_source_integration_tests.item_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "item_data.csv", "original_file_path": "seeds/item_data.csv", "name": "item_data", "alias": "item_data", "checksum": {"name": "sha256", "checksum": "8057771cc5c837c6193ad423e6a52f7058f6001550eaa0c15098857415aee7d4"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.951901, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"item_data\""}, "seed.quickbooks_source_integration_tests.sales_receipt_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "sales_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "sales_receipt_data.csv", "original_file_path": "seeds/sales_receipt_data.csv", "name": "sales_receipt_data", "alias": "sales_receipt_data", "checksum": {"name": "sha256", "checksum": "2ac15faf0cdff7d71155fc20bb86e69d0a67d25f2172f220dbe850d45738230b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9528, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_data\""}, "seed.quickbooks_source_integration_tests.deposit_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "deposit_data"], "unique_id": "seed.quickbooks_source_integration_tests.deposit_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "deposit_data.csv", "original_file_path": "seeds/deposit_data.csv", "name": "deposit_data", "alias": "deposit_data", "checksum": {"name": "sha256", "checksum": "e0e4299672423dbdf3d63d050ecd34c29580b5a368b64307053a635e7dd9286e"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9537091, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"deposit_data\""}, "seed.quickbooks_source_integration_tests.refund_receipt_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "quote_columns": false, "quickbooks_source_integration_tests": null, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests", "fqn": ["quickbooks_source_integration_tests", "refund_receipt_data"], "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data", "package_name": "quickbooks_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests", "path": "refund_receipt_data.csv", "original_file_path": "seeds/refund_receipt_data.csv", "name": "refund_receipt_data", "alias": "refund_receipt_data", "checksum": {"name": "sha256", "checksum": "0bfb44ee366239221dfee9e985b0c66d5a7cbc6d0bb8c18cf02acba7616c135d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type == 'redshift' else false }}", "quickbooks_source_integration_tests": null}, "created_at": 1664225296.9547148, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_data\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__journal_entry_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__journal_entry_line_tmp')),\n staging_columns=get_journal_entry_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n index,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n amount,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry_line.sql", "original_file_path": "models/stg_quickbooks__journal_entry_line.sql", "name": "stg_quickbooks__journal_entry_line", "alias": "stg_quickbooks__journal_entry_line", "checksum": {"name": "sha256", "checksum": "8182bb7fde66f44182184937272a46db77aabfd36c1fbb72d6e6f29ad8bf29ee"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line_tmp"], ["stg_quickbooks__journal_entry_line_tmp"]], "sources": [], "metrics": [], "description": "Individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0502112, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\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 billable_status\n \n as \n \n billable_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n posting_type\n \n as \n \n posting_type\n \n, \n \n \n tax_amount\n \n as \n \n tax_amount\n \n, \n \n \n tax_applicable_on\n \n as \n \n tax_applicable_on\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(journal_entry_id as \n varchar\n) as journal_entry_id,\n index,\n cast(account_id as \n varchar\n) as account_id,\n amount,\n cast(customer_id as \n varchar\n) as customer_id,\n department_id,\n class_id,\n description,\n billable_status,\n posting_type,\n cast(vendor_id as \n varchar\n) as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\""}, "model.quickbooks_source.stg_quickbooks__transfer": {"raw_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__transfer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__transfer_tmp')),\n staging_columns=get_transfer_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as transfer_id,\n amount,\n cast(from_account_id as {{ dbt_utils.type_string() }}) as from_account_id,\n cast(to_account_id as {{ dbt_utils.type_string() }}) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_transfer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__transfer"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__transfer.sql", "original_file_path": "models/stg_quickbooks__transfer.sql", "name": "stg_quickbooks__transfer", "alias": "stg_quickbooks__transfer", "checksum": {"name": "sha256", "checksum": "c23e6ffe67c90019d686607db14ed9e6218e1e9a0006da0f37eb63aaacdf25a8"}, "tags": [], "refs": [["stg_quickbooks__transfer_tmp"], ["stg_quickbooks__transfer_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"transfer_id": {"name": "transfer_id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__transfer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.071674, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n from_account_id\n \n as \n \n from_account_id\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n to_account_id\n \n as \n \n to_account_id\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as transfer_id,\n amount,\n cast(from_account_id as \n varchar\n) as from_account_id,\n cast(to_account_id as \n varchar\n) as to_account_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_payment_line_tmp')),\n staging_columns=get_bill_payment_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n index,\n amount,\n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment_line.sql", "original_file_path": "models/stg_quickbooks__bill_payment_line.sql", "name": "stg_quickbooks__bill_payment_line", "alias": "stg_quickbooks__bill_payment_line", "checksum": {"name": "sha256", "checksum": "576576fe59dcfc7f3124568fbc558bd3bf3bb8c1fa4c5fe807efb2fc4d23f577"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line_tmp"], ["stg_quickbooks__bill_payment_line_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0193012, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_credit_card_id\n \n as \n \n bill_payment_credit_card_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n linked_bill_payment_id\n \n as \n \n linked_bill_payment_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_payment_id as \n varchar\n) as bill_payment_id,\n index,\n amount,\n cast(bill_id as \n varchar\n) as bill_id,\n deposit_id,\n expense_id,\n journal_entry_id,\n linked_bill_payment_id,\n vendor_credit_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\""}, "model.quickbooks_source.stg_quickbooks__payment_line": {"raw_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__payment_line_tmp')),\n staging_columns=get_payment_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment_line.sql", "original_file_path": "models/stg_quickbooks__payment_line.sql", "name": "stg_quickbooks__payment_line", "alias": "stg_quickbooks__payment_line", "checksum": {"name": "sha256", "checksum": "31e9e3f13b0368c950a43abcb00f6e7cf9f524e840ff5e8e1fa3f9948992794e"}, "tags": [], "refs": [["stg_quickbooks__payment_line_tmp"], ["stg_quickbooks__payment_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.052949, "compiled_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n check_id\n \n as \n \n check_id\n \n, \n \n \n credit_card_charge_id\n \n as \n \n credit_card_charge_id\n \n, \n \n \n credit_card_credit_id\n \n as \n \n credit_card_credit_id\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(payment_id as \n varchar\n) as payment_id,\n index,\n amount,\n journal_entry_id,\n deposit_id,\n cast(invoice_id as \n varchar\n) as invoice_id,\n credit_memo_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\""}, "model.quickbooks_source.stg_quickbooks__vendor": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__vendor_tmp')),\n staging_columns=get_vendor_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as {{ dbt_utils.type_string() }}) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor.sql", "original_file_path": "models/stg_quickbooks__vendor.sql", "name": "stg_quickbooks__vendor", "alias": "stg_quickbooks__vendor", "checksum": {"name": "sha256", "checksum": "10e8f6a5039c3cfe39da881607eb1b3d61fd04917b610c7543ea0d9bccdd21e7"}, "tags": [], "refs": [["stg_quickbooks__vendor_tmp"], ["stg_quickbooks__vendor_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"vendor_id": {"name": "vendor_id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_vendor_1099": {"name": "is_vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1664225298.077773, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone\n \n as \n \n alternate_phone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_phone\n \n as \n \n mobile_phone\n \n, \n \n \n other_contacts\n \n as \n \n other_contacts\n \n, \n \n \n primary_phone\n \n as \n \n primary_phone\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_identifier\n \n as \n \n tax_identifier\n \n, \n \n \n term_id\n \n as \n \n term_id\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_1099\n \n as \n \n vendor_1099\n \n, \n \n \n web_url\n \n as \n \n web_url\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as vendor_id,\n account_number,\n active as is_active,\n balance,\n cast(billing_address_id as \n varchar\n) as billing_address_id,\n company_name,\n created_at,\n currency_id,\n display_name,\n web_url,\n vendor_1099 as is_vendor_1099\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\""}, "model.quickbooks_source.stg_quickbooks__invoice_line": {"raw_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__invoice_line_tmp')),\n staging_columns=get_invoice_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line.sql", "original_file_path": "models/stg_quickbooks__invoice_line.sql", "name": "stg_quickbooks__invoice_line", "alias": "stg_quickbooks__invoice_line", "checksum": {"name": "sha256", "checksum": "7906b307229b91a842dc797cd69a19a2ab202fdbe3a3cbc31bd6e39d30716f4b"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_tmp"], ["stg_quickbooks__invoice_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.042301, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\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 bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n index,\n amount,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_class_id,\n sales_item_quantity,\n sales_item_unit_price,\n discount_account_id,\n discount_class_id,\n description,\n quantity,\n bundle_quantity,\n cast(bundle_id as \n varchar\n) as bundle_id,\n cast(account_id as \n varchar\n) as account_id,\n cast(item_id as \n varchar\n) as item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\""}, "model.quickbooks_source.stg_quickbooks__estimate": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__estimate_tmp')),\n staging_columns=get_estimate_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as estimate_id,\n class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate.sql", "original_file_path": "models/stg_quickbooks__estimate.sql", "name": "stg_quickbooks__estimate", "alias": "stg_quickbooks__estimate", "checksum": {"name": "sha256", "checksum": "61a85858135108187659defbc6b52be05c0a1304b78bfe222a8eb9bce785a642"}, "tags": [], "refs": [["stg_quickbooks__estimate_tmp"], ["stg_quickbooks__estimate_tmp"]], "sources": [], "metrics": [], "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.037281, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accepted_by\n \n as \n \n accepted_by\n \n, \n \n \n accepted_date\n \n as \n \n accepted_date\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n expiration_date\n \n as \n \n expiration_date\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as estimate_id,\n class_id,\n created_at,\n currency_id,\n customer_id,\n department_id,\n due_date,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line": {"raw_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__credit_memo_line_tmp')),\n staging_columns=get_credit_memo_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo_line.sql", "original_file_path": "models/stg_quickbooks__credit_memo_line.sql", "name": "stg_quickbooks__credit_memo_line", "alias": "stg_quickbooks__credit_memo_line", "checksum": {"name": "sha256", "checksum": "731e90d11faba9c0f3875147fc405accd6af74d78fc1ec7a18c44f20a46ede43"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line_tmp"], ["stg_quickbooks__credit_memo_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.027968, "compiled_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n credit_memo_id\n \n as \n \n credit_memo_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(credit_memo_id as \n varchar\n) as credit_memo_id,\n index,\n amount,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n discount_class_id,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\""}, "model.quickbooks_source.stg_quickbooks__bundle": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_tmp')),\n staging_columns=get_bundle_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle.sql", "original_file_path": "models/stg_quickbooks__bundle.sql", "name": "stg_quickbooks__bundle", "alias": "stg_quickbooks__bundle", "checksum": {"name": "sha256", "checksum": "0ef2ed2eb8ac8a308edbedea863968ddd1ad5f619afe6e9c72678ef151168d98"}, "tags": [], "refs": [["stg_quickbooks__bundle_tmp"], ["stg_quickbooks__bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"bundle_id": {"name": "bundle_id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.024908, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\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 print_grouped_items\n \n as \n \n print_grouped_items\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as bundle_id,\n created_at,\n active as is_active,\n fully_qualified_name,\n updated_at\n\n from fields\n)\n\nselect * from final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\""}, "model.quickbooks_source.stg_quickbooks__department": {"raw_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__department_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__department_tmp')),\n staging_columns=get_department_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_department_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__department"], "unique_id": "model.quickbooks_source.stg_quickbooks__department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__department.sql", "original_file_path": "models/stg_quickbooks__department.sql", "name": "stg_quickbooks__department", "alias": "stg_quickbooks__department", "checksum": {"name": "sha256", "checksum": "2be93e7cc41f15b54e16e9dcf3fa931ca96aa0c49cafee6b61af10a8938a063f"}, "tags": [], "refs": [["stg_quickbooks__department_tmp"], ["stg_quickbooks__department_tmp"]], "sources": [], "metrics": [], "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"department_id": {"name": "department_id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_department": {"name": "is_sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the unique identifier of the parent department if is_sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__department.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.032782, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\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 parent_department_id\n \n as \n \n parent_department_id\n \n, \n \n \n sub_department\n \n as \n \n sub_department\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n id as department_id,\n active as is_active,\n created_at,\n updated_at,\n fully_qualified_name,\n name,\n sub_department as is_sub_department,\n parent_department_id\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department\""}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_card_payment_txn_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_quickbooks__credit_card_payment_txn_tmp')),\n staging_columns=get_credit_card_payment_txn_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_card_payment_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_card_payment_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_card_payment_txn.sql", "original_file_path": "models/stg_quickbooks__credit_card_payment_txn.sql", "name": "stg_quickbooks__credit_card_payment_txn", "alias": "stg_quickbooks__credit_card_payment_txn", "checksum": {"name": "sha256", "checksum": "7f3035cf27c83a4f96e2d25e6157b2ed1f1a8f34bc9fdc05f238230d05d36b69"}, "tags": [], "refs": [["stg_quickbooks__credit_card_payment_txn_tmp"], ["stg_quickbooks__credit_card_payment_txn_tmp"]], "sources": [], "metrics": [], "description": "Table containing all credit card payment transactions.", "columns": {"credit_card_payment_id": {"name": "credit_card_payment_id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_most_recent_record": {"name": "is_most_recent_record", "description": "Boolean indicating if the record is the most recent updated version of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_card_payment_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.026408, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n id\n \n as \n \n id\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bank_account_id\n \n as \n \n bank_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n cast(null as \n varchar\n) as \n \n sync_token\n \n , \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as credit_card_payment_id,\n amount,\n bank_account_id,\n credit_card_account_id,\n created_at,\n updated_at,\n currency_id,\n transaction_date,\n _fivetran_deleted,\n row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn\""}, "model.quickbooks_source.stg_quickbooks__purchase_line": {"raw_sql": "with base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_line_tmp')),\n staging_columns=get_purchase_line_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_line.sql", "original_file_path": "models/stg_quickbooks__purchase_line.sql", "name": "stg_quickbooks__purchase_line", "alias": "stg_quickbooks__purchase_line", "checksum": {"name": "sha256", "checksum": "b9450450ff124f39a044634b49ee7acd4933674b5b3eb95e599b1cb52cea79e9"}, "tags": [], "refs": [["stg_quickbooks__purchase_line_tmp"], ["stg_quickbooks__purchase_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based expense purchase line", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1664225298.056412, "compiled_sql": "with base as (\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_id as \n varchar\n) as purchase_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\""}, "model.quickbooks_source.stg_quickbooks__purchase": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__purchase_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_tmp')),\n staging_columns=get_purchase_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n created_at,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase.sql", "original_file_path": "models/stg_quickbooks__purchase.sql", "name": "stg_quickbooks__purchase", "alias": "stg_quickbooks__purchase", "checksum": {"name": "sha256", "checksum": "c8bc7f7cee804ce5a82d9b11833771548f542afd1c53161f672dc41ece81ea7a"}, "tags": [], "refs": [["stg_quickbooks__purchase_tmp"], ["stg_quickbooks__purchase_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase expenses.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1664225298.058508, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n employee_id\n \n as \n \n employee_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remit_to_address_id\n \n as \n \n remit_to_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as purchase_id,\n cast(account_id as \n varchar\n) as account_id,\n created_at,\n cast(doc_number as \n varchar\n) as doc_number,\n currency_id,\n exchange_rate,\n credit,\n total_amount,\n payment_type,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n cast(vendor_id as \n varchar\n) as vendor_id,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__refund_receipt_line_tmp')),\n staging_columns=get_refund_receipt_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as {{ dbt_utils.type_string() }}) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt_line.sql", "original_file_path": "models/stg_quickbooks__refund_receipt_line.sql", "name": "stg_quickbooks__refund_receipt_line", "alias": "stg_quickbooks__refund_receipt_line", "checksum": {"name": "sha256", "checksum": "8212f77bbd56e97a8e02b8d7c222ca55dfcdf2170f59bd6b230c23ed369ca606"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line_tmp"], ["stg_quickbooks__refund_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.065133, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n refund_id\n \n as \n \n refund_id\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(refund_id as \n varchar\n) as refund_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_quantity,\n sales_item_unit_price,\n sales_item_tax_code_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__bundle_item": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bundle_item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__bundle_item_tmp')),\n staging_columns=get_bundle_item_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as {{ dbt_utils.type_string() }}) as bundle_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bundle_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bundle_item"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bundle_item.sql", "original_file_path": "models/stg_quickbooks__bundle_item.sql", "name": "stg_quickbooks__bundle_item", "alias": "stg_quickbooks__bundle_item", "checksum": {"name": "sha256", "checksum": "fb8aa15c70398f69cd0f33a4acf161994c7915b183485abf5623256b13f94204"}, "tags": [], "refs": [["stg_quickbooks__bundle_item_tmp"], ["stg_quickbooks__bundle_item_tmp"]], "sources": [], "metrics": [], "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bundle_item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.023946, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n item_quantity\n \n as \n \n item_quantity\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bundle_id as \n varchar\n) as bundle_id,\n cast(item_id as \n varchar\n) as item_id,\n item_quantity\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\""}, "model.quickbooks_source.stg_quickbooks__credit_memo": {"raw_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__credit_memo_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__credit_memo_tmp')),\n staging_columns=get_credit_memo_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as credit_memo_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_credit_memo_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__credit_memo"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__credit_memo.sql", "original_file_path": "models/stg_quickbooks__credit_memo.sql", "name": "stg_quickbooks__credit_memo", "alias": "stg_quickbooks__credit_memo", "checksum": {"name": "sha256", "checksum": "7f31e1d8b784eed03a72c1197f17a39acce3d8bdf12b6c69e7991cceff5666b3"}, "tags": [], "refs": [["stg_quickbooks__credit_memo_tmp"], ["stg_quickbooks__credit_memo_tmp"]], "sources": [], "metrics": [], "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__credit_memo.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.02966, "compiled_sql": "--To disable this model, set the using_credit_memo variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n remaining_credit\n \n as \n \n remaining_credit\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as credit_memo_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n class_id,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\""}, "model.quickbooks_source.stg_quickbooks__purchase_order": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_order_tmp')),\n staging_columns=get_purchase_order_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order.sql", "original_file_path": "models/stg_quickbooks__purchase_order.sql", "name": "stg_quickbooks__purchase_order", "alias": "stg_quickbooks__purchase_order", "checksum": {"name": "sha256", "checksum": "8d98e7f751346afa5f101b41fe7026488ce637898dd02bff4aff25378975a03d"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_tmp"], ["stg_quickbooks__purchase_order_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of purchase orders (PO).", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.063544, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_customer_type\n \n as \n \n custom_customer_type\n \n, \n cast(null as \n varchar\n) as \n \n custom_po_number\n \n , \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_address_id\n \n as \n \n vendor_address_id\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as purchase_order_id,\n created_at,\n custom_po_number,\n cast(doc_number as \n varchar\n) as doc_number,\n currency_id,\n exchange_rate,\n total_amount,\n cast(payable_account_id as \n varchar\n) as payable_account_id,\n cast(vendor_id as \n varchar\n) as vendor_id,\n transaction_date,\n status,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__sales_receipt_line_tmp')),\n staging_columns=get_sales_receipt_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as {{ dbt_utils.type_string() }}) as discount_account_id,\n cast(sales_item_account_id as {{ dbt_utils.type_string() }}) as sales_item_account_id,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt_line.sql", "original_file_path": "models/stg_quickbooks__sales_receipt_line.sql", "name": "stg_quickbooks__sales_receipt_line", "alias": "stg_quickbooks__sales_receipt_line", "checksum": {"name": "sha256", "checksum": "439c85dbcc118c34af1e82a50bb8a3b900f6c703097da5f26d205ee626745849"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line_tmp"], ["stg_quickbooks__sales_receipt_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.068565, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(sales_receipt_id as \n varchar\n) as sales_receipt_id,\n index,\n amount,\n description,\n cast(discount_account_id as \n varchar\n) as discount_account_id,\n cast(sales_item_account_id as \n varchar\n) as sales_item_account_id,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n sales_item_tax_code_id,\n sales_item_quantity,\n sales_item_unit_price \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__sales_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__sales_receipt_tmp')),\n staging_columns=get_sales_receipt_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as sales_receipt_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_sales_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__sales_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__sales_receipt.sql", "original_file_path": "models/stg_quickbooks__sales_receipt.sql", "name": "stg_quickbooks__sales_receipt", "alias": "stg_quickbooks__sales_receipt", "checksum": {"name": "sha256", "checksum": "151c999c4d87ced6509cba1d90bf218b0ad3818e76e6a7a758092a3fd41660d9"}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_tmp"], ["stg_quickbooks__sales_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__sales_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.070637, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as sales_receipt_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n created_at,\n cast(customer_id as \n varchar\n) as customer_id,\n department_id,\n class_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_line": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_order_line_tmp')),\n staging_columns=get_purchase_order_line_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_line.sql", "original_file_path": "models/stg_quickbooks__purchase_order_line.sql", "name": "stg_quickbooks__purchase_order_line", "alias": "stg_quickbooks__purchase_order_line", "checksum": {"name": "sha256", "checksum": "25adf35fd2f225f983c2d5dd18564d4b6cde49ceb79acd17230e3b448d6283dd"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line_tmp"], ["stg_quickbooks__purchase_order_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.060661, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n purchase_order_id\n \n as \n \n purchase_order_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as \n varchar\n) as purchase_order_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n account_expense_tax_code_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_billable_status,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n amount,\n description\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": {"raw_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__invoice_linked_txn_tmp')),\n staging_columns=get_invoice_linked_txn_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n cast(payment_id as {{ dbt_utils.type_string() }}) as payment_id,\n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_linked_txn.sql", "original_file_path": "models/stg_quickbooks__invoice_linked_txn.sql", "name": "stg_quickbooks__invoice_linked_txn", "alias": "stg_quickbooks__invoice_linked_txn", "checksum": {"name": "sha256", "checksum": "cde4edebc70b7fbc6dd6f2a188dcc053f2be9bec2140afa8acb37feb5e0dae16"}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn_tmp"], ["stg_quickbooks__invoice_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0399811, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n charge_credit_id\n \n as \n \n charge_credit_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n reimburse_charge_id\n \n as \n \n reimburse_charge_id\n \n, \n \n \n statement_charge_id\n \n as \n \n statement_charge_id\n \n, \n \n \n time_activity_id\n \n as \n \n time_activity_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n cast(payment_id as \n varchar\n) as payment_id,\n cast(estimate_id as \n varchar\n) as estimate_id,\n index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__invoice": {"raw_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__invoice_tmp')),\n staging_columns=get_invoice_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as invoice_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n cast(billing_address_id as {{ dbt_utils.type_string() }}) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice.sql", "original_file_path": "models/stg_quickbooks__invoice.sql", "name": "stg_quickbooks__invoice", "alias": "stg_quickbooks__invoice", "checksum": {"name": "sha256", "checksum": "d9add19e167a1f9243a34b39a75343d132db589efdfa2375ec02f007e96ca5f2"}, "tags": [], "refs": [["stg_quickbooks__invoice_tmp"], ["stg_quickbooks__invoice_tmp"]], "sources": [], "metrics": [], "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference is associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.046415, "compiled_sql": "--To disable this model, set the using_invoice variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n allow_ipnpayment\n \n as \n \n allow_ipnpayment\n \n, \n \n \n allow_online_achpayment\n \n as \n \n allow_online_achpayment\n \n, \n \n \n allow_online_credit_card_payment\n \n as \n \n allow_online_credit_card_payment\n \n, \n \n \n allow_online_payment\n \n as \n \n allow_online_payment\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n billing_bcc_email\n \n as \n \n billing_bcc_email\n \n, \n \n \n billing_cc_email\n \n as \n \n billing_cc_email\n \n, \n \n \n billing_email\n \n as \n \n billing_email\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n custom_p_o_number\n \n as \n \n custom_p_o_number\n \n, \n \n \n custom_sales_rep\n \n as \n \n custom_sales_rep\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n delivery_time\n \n as \n \n delivery_time\n \n, \n \n \n delivery_type\n \n as \n \n delivery_type\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit\n \n as \n \n deposit\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n email_status\n \n as \n \n email_status\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n ship_date\n \n as \n \n ship_date\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n tracking_number\n \n as \n \n tracking_number\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as invoice_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n department_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as \n varchar\n) as customer_id,\n cast(billing_address_id as \n varchar\n) as billing_address_id,\n shipping_address_id,\n delivery_type,\n due_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\""}, "model.quickbooks_source.stg_quickbooks__bill_payment": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_payment_tmp')),\n staging_columns=get_bill_payment_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_payment_id,\n cast(check_bank_account_id as {{ dbt_utils.type_string() }}) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as {{ dbt_utils.type_string() }}) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_payment.sql", "original_file_path": "models/stg_quickbooks__bill_payment.sql", "name": "stg_quickbooks__bill_payment", "alias": "stg_quickbooks__bill_payment", "checksum": {"name": "sha256", "checksum": "cf71cbd50dd81b86d439835f3061a0f20760dd14b69d8be29a1ddeb4e74ae9ec"}, "tags": [], "refs": [["stg_quickbooks__bill_payment_tmp"], ["stg_quickbooks__bill_payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0212631, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n check_bank_account_id\n \n as \n \n check_bank_account_id\n \n, \n \n \n check_print_status\n \n as \n \n check_print_status\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_account_id\n \n as \n \n credit_card_account_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n pay_type\n \n as \n \n pay_type\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_bill_payment\n \n as \n \n process_bill_payment\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as bill_payment_id,\n cast(check_bank_account_id as \n varchar\n) as check_bank_account_id,\n check_print_status,\n cast(credit_card_account_id as \n varchar\n) as credit_card_account_id,\n exchange_rate,\n currency_id,\n department_id,\n pay_type,\n total_amount,\n transaction_date,\n cast(vendor_id as \n varchar\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__invoice_line_bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__invoice_line_bundle_tmp')),\n staging_columns=get_invoice_line_bundle_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as {{ dbt_utils.type_string() }}) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as {{ dbt_utils.type_string() }}) as sales_item_item_id,\n cast(item_id as {{ dbt_utils.type_string() }}) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_invoice_line_bundle_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__invoice_line_bundle"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__invoice_line_bundle.sql", "original_file_path": "models/stg_quickbooks__invoice_line_bundle.sql", "name": "stg_quickbooks__invoice_line_bundle", "alias": "stg_quickbooks__invoice_line_bundle", "checksum": {"name": "sha256", "checksum": "bcd0b77671c0f4445a56033269d4a5fc98ff663ff2707700bde1c8365fe520b3"}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle_tmp"], ["stg_quickbooks__invoice_line_bundle_tmp"]], "sources": [], "metrics": [], "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_line_index": {"name": "invoice_line_index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__invoice_line_bundle.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0439832, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\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 description\n \n as \n \n description\n \n, \n \n \n discount_amount\n \n as \n \n discount_amount\n \n, \n \n \n discount_rate\n \n as \n \n discount_rate\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n invoice_line_index\n \n as \n \n invoice_line_index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n line_num\n \n as \n \n line_num\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n service_date\n \n as \n \n service_date\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(invoice_id as \n varchar\n) as invoice_id,\n index,\n class_id,\n description,\n amount,\n cast(sales_item_item_id as \n varchar\n) as sales_item_item_id,\n cast(item_id as \n varchar\n) as item_id,\n quantity,\n sales_item_quantity,\n cast(account_id as \n varchar\n) as account_id,\n unit_price,\n invoice_line_index\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\""}, "model.quickbooks_source.stg_quickbooks__account": {"raw_sql": "with base as (\n select *\n from {{ ref('stg_quickbooks__account_tmp') }}\n\n),\n\naccount 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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__account_tmp')),\n staging_columns=get_account_columns()\n )\n }}\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as account_id,\n cast(account_number as {{ dbt_utils.type_string() }}) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as {{ dbt_utils.type_string() }}) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at\n\n from base\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_account_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__account"], "unique_id": "model.quickbooks_source.stg_quickbooks__account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__account.sql", "original_file_path": "models/stg_quickbooks__account.sql", "name": "stg_quickbooks__account", "alias": "stg_quickbooks__account", "checksum": {"name": "sha256", "checksum": "ab8f2d71492bdf90ba7d2dc6e50139c2b860226d77f18b4e67efd94131d98c1f"}, "tags": [], "refs": [["stg_quickbooks__account_tmp"], ["stg_quickbooks__account_tmp"]], "sources": [], "metrics": [], "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.\n", "columns": {"account_id": {"name": "account_id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_sub_account": {"name": "is_sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__account.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1664225298.0130692, "compiled_sql": "with base as (\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\"\n\n),\n\naccount 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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_number\n \n as \n \n account_number\n \n, \n \n \n account_sub_type\n \n as \n \n account_sub_type\n \n, \n \n \n account_type\n \n as \n \n account_type\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_sub_accounts\n \n as \n \n balance_with_sub_accounts\n \n, \n \n \n classification\n \n as \n \n classification\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\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 parent_account_id\n \n as \n \n parent_account_id\n \n, \n \n \n sub_account\n \n as \n \n sub_account\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as account_id,\n cast(account_number as \n varchar\n) as account_number,\n sub_account as is_sub_account,\n cast(parent_account_id as \n varchar\n) as parent_account_id,\n name,\n account_type,\n account_sub_type,\n classification,\n balance,\n balance_with_sub_accounts,\n active as is_active,\n created_at,\n currency_id,\n description,\n fully_qualified_name,\n updated_at\n\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\""}, "model.quickbooks_source.stg_quickbooks__payment": {"raw_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_payment', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__payment_tmp')),\n staging_columns=get_payment_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as {{ dbt_utils.type_string() }}) as receivable_account_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_payment_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__payment"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__payment.sql", "original_file_path": "models/stg_quickbooks__payment.sql", "name": "stg_quickbooks__payment", "alias": "stg_quickbooks__payment", "checksum": {"name": "sha256", "checksum": "e4bf9c4a71e597b2a9c4df93d53e73d9226c0c1643498487b17744af533a40f3"}, "tags": [], "refs": [["stg_quickbooks__payment_tmp"], ["stg_quickbooks__payment_tmp"]], "sources": [], "metrics": [], "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__payment.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.054464, "compiled_sql": "--To disable this model, set the using_payment variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n process_payment\n \n as \n \n process_payment\n \n, \n \n \n receivable_account_id\n \n as \n \n receivable_account_id\n \n, \n \n \n reference_number\n \n as \n \n reference_number\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n unapplied_amount\n \n as \n \n unapplied_amount\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as payment_id,\n unapplied_amount,\n total_amount,\n currency_id,\n cast(receivable_account_id as \n varchar\n) as receivable_account_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n exchange_rate,\n transaction_date,\n cast(customer_id as \n varchar\n) as customer_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\""}, "model.quickbooks_source.stg_quickbooks__estimate_line": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__estimate_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__estimate_line_tmp')),\n staging_columns=get_estimate_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as {{ dbt_utils.type_string() }}) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_estimate_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__estimate_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__estimate_line.sql", "original_file_path": "models/stg_quickbooks__estimate_line.sql", "name": "stg_quickbooks__estimate_line", "alias": "stg_quickbooks__estimate_line", "checksum": {"name": "sha256", "checksum": "236c8ce21b4a765f9ac17846a408fb3e5e41c432c0ece468938f000db9338bb4"}, "tags": [], "refs": [["stg_quickbooks__estimate_line_tmp"], ["stg_quickbooks__estimate_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__estimate_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.039236, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\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 bundle_id\n \n as \n \n bundle_id\n \n, \n \n \n bundle_quantity\n \n as \n \n bundle_quantity\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n description_service_date\n \n as \n \n description_service_date\n \n, \n \n \n description_tax_code_id\n \n as \n \n description_tax_code_id\n \n, \n \n \n discount_account_id\n \n as \n \n discount_account_id\n \n, \n \n \n discount_class_id\n \n as \n \n discount_class_id\n \n, \n \n \n discount_discount_percent\n \n as \n \n discount_discount_percent\n \n, \n \n \n discount_percent_based\n \n as \n \n discount_percent_based\n \n, \n \n \n discount_tax_code_id\n \n as \n \n discount_tax_code_id\n \n, \n \n \n estimate_id\n \n as \n \n estimate_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n quantity\n \n as \n \n quantity\n \n, \n \n \n sales_item_account_id\n \n as \n \n sales_item_account_id\n \n, \n \n \n sales_item_class_id\n \n as \n \n sales_item_class_id\n \n, \n \n \n sales_item_discount_amount\n \n as \n \n sales_item_discount_amount\n \n, \n \n \n sales_item_discount_rate\n \n as \n \n sales_item_discount_rate\n \n, \n \n \n sales_item_item_id\n \n as \n \n sales_item_item_id\n \n, \n \n \n sales_item_quantity\n \n as \n \n sales_item_quantity\n \n, \n \n \n sales_item_service_date\n \n as \n \n sales_item_service_date\n \n, \n \n \n sales_item_tax_code_id\n \n as \n \n sales_item_tax_code_id\n \n, \n \n \n sales_item_unit_price\n \n as \n \n sales_item_unit_price\n \n, \n \n \n sub_total_item_id\n \n as \n \n sub_total_item_id\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(estimate_id as \n varchar\n) as estimate_id,\n index,\n description,\n discount_account_id,\n discount_class_id,\n sales_item_account_id,\n sales_item_class_id,\n sales_item_item_id,\n sales_item_quantity,\n item_id,\n quantity,\n account_id,\n amount\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn": {"raw_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_linked_txn_tmp')),\n staging_columns=get_bill_linked_txn_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(bill_payment_id as {{ dbt_utils.type_string() }}) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_linked_txn.sql", "original_file_path": "models/stg_quickbooks__bill_linked_txn.sql", "name": "stg_quickbooks__bill_linked_txn", "alias": "stg_quickbooks__bill_linked_txn", "checksum": {"name": "sha256", "checksum": "61d8f6482d5485430f1e877300688ea1da6e5c7f85875d2da1b0fe008b5b429a"}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn_tmp"], ["stg_quickbooks__bill_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.017643, "compiled_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n bill_payment_id\n \n as \n \n bill_payment_id\n \n, \n \n \n index\n \n as \n \n index\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n varchar\n) as bill_id,\n index,\n cast(bill_payment_id as \n varchar\n) as bill_payment_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__address": {"raw_sql": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__address_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__address_tmp')),\n staging_columns=get_address_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__address"], "unique_id": "model.quickbooks_source.stg_quickbooks__address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__address.sql", "original_file_path": "models/stg_quickbooks__address.sql", "name": "stg_quickbooks__address", "alias": "stg_quickbooks__address", "checksum": {"name": "sha256", "checksum": "5648267ee252643f3ba7f1463b79965aff6998b6636cfd2deacd9bb7c951cb2b"}, "tags": [], "refs": [["stg_quickbooks__address_tmp"], ["stg_quickbooks__address_tmp"]], "sources": [], "metrics": [], "description": "Table containing address details.", "columns": {"address_id": {"name": "address_id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_1": {"name": "address_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "address_2": {"name": "address_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__address.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.014355, "compiled_sql": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n country_sub_division_code\n \n as \n \n country_sub_division_code\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n latitude\n \n as \n \n latitude\n \n, \n \n \n line_1\n \n as \n \n line_1\n \n, \n \n \n line_2\n \n as \n \n line_2\n \n, \n \n \n line_3\n \n as \n \n line_3\n \n, \n \n \n line_4\n \n as \n \n line_4\n \n, \n \n \n line_5\n \n as \n \n line_5\n \n, \n \n \n longitude\n \n as \n \n longitude\n \n, \n \n \n postal_code\n \n as \n \n postal_code\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as address_id,\n city,\n country,\n line_1 as address_1,\n line_2 as address_2,\n postal_code\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\""}, "model.quickbooks_source.stg_quickbooks__bill": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_tmp')),\n staging_columns=get_bill_columns()\n )\n }}\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as bill_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n total_amount,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill.sql", "original_file_path": "models/stg_quickbooks__bill.sql", "name": "stg_quickbooks__bill", "alias": "stg_quickbooks__bill", "checksum": {"name": "sha256", "checksum": "082c7d45aa91cd473330817e7115cdd6268a51319b226cd5a17f6ab563ffa097"}, "tags": [], "refs": [["stg_quickbooks__bill_tmp"], ["stg_quickbooks__bill_tmp"]], "sources": [], "metrics": [], "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0233228, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n \nfinal as (\n \n select \n cast(id as \n varchar\n) as bill_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n currency_id,\n department_id,\n due_date as due_date_at,\n transaction_date,\n exchange_rate,\n cast(payable_account_id as \n varchar\n) as payable_account_id,\n total_amount,\n cast(vendor_id as \n varchar\n) as vendor_id,\n private_note,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\""}, "model.quickbooks_source.stg_quickbooks__bill_line": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__bill_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__bill_line_tmp')),\n staging_columns=get_bill_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n index,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_bill_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__bill_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__bill_line.sql", "original_file_path": "models/stg_quickbooks__bill_line.sql", "name": "stg_quickbooks__bill_line", "alias": "stg_quickbooks__bill_line", "checksum": {"name": "sha256", "checksum": "fd1ad3febae0e4bdc558f7532dd6af20cb63c21659756702bc6767b5e00828f3"}, "tags": [], "refs": [["stg_quickbooks__bill_line_tmp"], ["stg_quickbooks__bill_line_tmp"]], "sources": [], "metrics": [], "description": "", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__bill_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.016618, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(bill_id as \n varchar\n) as bill_id,\n index,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_class_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\""}, "model.quickbooks_source.stg_quickbooks__journal_entry": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__journal_entry_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__journal_entry_tmp')),\n staging_columns=get_journal_entry_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as {{ dbt_utils.type_string() }}) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_journal_entry_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__journal_entry"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__journal_entry.sql", "original_file_path": "models/stg_quickbooks__journal_entry.sql", "name": "stg_quickbooks__journal_entry", "alias": "stg_quickbooks__journal_entry", "checksum": {"name": "sha256", "checksum": "6adb65ff59e13768161ba5c0a0bfe99806898d3262825ff8cf128e562eda62ce"}, "tags": [], "refs": [["stg_quickbooks__journal_entry_tmp"], ["stg_quickbooks__journal_entry_tmp"]], "sources": [], "metrics": [], "description": "Table containing journal entry transactions.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__journal_entry.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.051776, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adjustment\n \n as \n \n adjustment\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(id as \n varchar\n) as journal_entry_id,\n adjustment as is_adjustment,\n created_at,\n currency_id,\n cast(doc_number as \n varchar\n) as doc_number,\n exchange_rate,\n private_note,\n total_amount,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect *\nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__refund_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__refund_receipt_tmp')),\n staging_columns=get_refund_receipt_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as refund_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as {{ dbt_utils.type_string() }}) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as {{ dbt_utils.type_string() }}) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_refund_receipt_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__refund_receipt"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__refund_receipt.sql", "original_file_path": "models/stg_quickbooks__refund_receipt.sql", "name": "stg_quickbooks__refund_receipt", "alias": "stg_quickbooks__refund_receipt", "checksum": {"name": "sha256", "checksum": "2910d63c96e4ddf5818442a6d16726c4a55f9f7b0e06407b3d6da40c345faa29"}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_tmp"], ["stg_quickbooks__refund_receipt_tmp"]], "sources": [], "metrics": [], "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__refund_receipt.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.066989, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n apply_tax_after_discount\n \n as \n \n apply_tax_after_discount\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n bill_email\n \n as \n \n bill_email\n \n, \n \n \n billing_address_id\n \n as \n \n billing_address_id\n \n, \n \n \n check_payment_account_number\n \n as \n \n check_payment_account_number\n \n, \n \n \n check_payment_bank_name\n \n as \n \n check_payment_bank_name\n \n, \n \n \n check_payment_check_number\n \n as \n \n check_payment_check_number\n \n, \n \n \n check_payment_name_on_account\n \n as \n \n check_payment_name_on_account\n \n, \n \n \n check_payment_status\n \n as \n \n check_payment_status\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n credit_card_amount\n \n as \n \n credit_card_amount\n \n, \n \n \n credit_card_auth_code\n \n as \n \n credit_card_auth_code\n \n, \n \n \n credit_card_billing_address_street\n \n as \n \n credit_card_billing_address_street\n \n, \n \n \n credit_card_cc_expiry_month\n \n as \n \n credit_card_cc_expiry_month\n \n, \n \n \n credit_card_cc_expiry_year\n \n as \n \n credit_card_cc_expiry_year\n \n, \n \n \n credit_card_cctrans_id\n \n as \n \n credit_card_cctrans_id\n \n, \n \n \n credit_card_name_on_account\n \n as \n \n credit_card_name_on_account\n \n, \n \n \n credit_card_postal_code\n \n as \n \n credit_card_postal_code\n \n, \n \n \n credit_card_process_payment\n \n as \n \n credit_card_process_payment\n \n, \n \n \n credit_card_status\n \n as \n \n credit_card_status\n \n, \n \n \n credit_card_transaction_authorization_time\n \n as \n \n credit_card_transaction_authorization_time\n \n, \n \n \n credit_card_type\n \n as \n \n credit_card_type\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n customer_memo\n \n as \n \n customer_memo\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n deposit_to_account_id\n \n as \n \n deposit_to_account_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_balance\n \n as \n \n home_balance\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n payment_reference_number\n \n as \n \n payment_reference_number\n \n, \n \n \n payment_type\n \n as \n \n payment_type\n \n, \n \n \n print_status\n \n as \n \n print_status\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_code_id\n \n as \n \n tax_code_id\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n total_tax\n \n as \n \n total_tax\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as refund_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n class_id,\n cast(deposit_to_account_id as \n varchar\n) as deposit_to_account_id,\n created_at,\n department_id,\n cast(customer_id as \n varchar\n) as customer_id,\n currency_id,\n exchange_rate,\n transaction_date,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\""}, "model.quickbooks_source.stg_quickbooks__deposit_line": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__deposit_line_tmp')),\n staging_columns=get_deposit_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as {{ dbt_utils.type_string() }}) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as {{ dbt_utils.type_string() }}) as deposit_account_id,\n deposit_class_id,\n cast(deposit_customer_id as {{ dbt_utils.type_string() }}) as deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit_line.sql", "original_file_path": "models/stg_quickbooks__deposit_line.sql", "name": "stg_quickbooks__deposit_line", "alias": "stg_quickbooks__deposit_line", "checksum": {"name": "sha256", "checksum": "a32b911408ed00166ecfb3b88ff365da095fe6a3148542452a93ea85c9649065"}, "tags": [], "refs": [["stg_quickbooks__deposit_line_tmp"], ["stg_quickbooks__deposit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0338821, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n deposit_account_id\n \n as \n \n deposit_account_id\n \n, \n \n \n deposit_check_number\n \n as \n \n deposit_check_number\n \n, \n \n \n deposit_class_id\n \n as \n \n deposit_class_id\n \n, \n \n \n deposit_customer_id\n \n as \n \n deposit_customer_id\n \n, \n \n \n deposit_id\n \n as \n \n deposit_id\n \n, \n \n \n deposit_payment_method_id\n \n as \n \n deposit_payment_method_id\n \n, \n \n \n deposit_tax_applicable_on\n \n as \n \n deposit_tax_applicable_on\n \n, \n \n \n deposit_tax_code_id\n \n as \n \n deposit_tax_code_id\n \n, \n \n \n deposit_transaction_type\n \n as \n \n deposit_transaction_type\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n detail_type\n \n as \n \n detail_type\n \n, \n \n \n expense_id\n \n as \n \n expense_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n invoice_id\n \n as \n \n invoice_id\n \n, \n \n \n journal_entry_id\n \n as \n \n journal_entry_id\n \n, \n \n \n payment_id\n \n as \n \n payment_id\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n refund_receipt_id\n \n as \n \n refund_receipt_id\n \n, \n \n \n sales_receipt_id\n \n as \n \n sales_receipt_id\n \n, \n \n \n transfer_id\n \n as \n \n transfer_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(deposit_id as \n varchar\n) as deposit_id,\n index,\n amount,\n description,\n cast(deposit_account_id as \n varchar\n) as deposit_account_id,\n deposit_class_id,\n cast(deposit_customer_id as \n varchar\n) as deposit_customer_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__vendor_credit_tmp')),\n staging_columns=get_vendor_credit_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n balance,\n cast(doc_number as {{ dbt_utils.type_string() }}) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as {{ dbt_utils.type_string() }}) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as {{ dbt_utils.type_string() }}) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit.sql", "original_file_path": "models/stg_quickbooks__vendor_credit.sql", "name": "stg_quickbooks__vendor_credit", "alias": "stg_quickbooks__vendor_credit", "checksum": {"name": "sha256", "checksum": "3040e997aabc279f20d3740f0591319d9973862ab4de1dab050d3b59a76a4545"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_tmp"], ["stg_quickbooks__vendor_credit_tmp"]], "sources": [], "metrics": [], "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.076086, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n doc_number\n \n as \n \n doc_number\n \n, \n \n \n exchange_rate\n \n as \n \n exchange_rate\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n payable_account_id\n \n as \n \n payable_account_id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n vendor_id\n \n as \n \n vendor_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as vendor_credit_id,\n balance,\n cast(doc_number as \n varchar\n) as doc_number,\n total_amount,\n currency_id,\n exchange_rate,\n created_at,\n cast(payable_account_id as \n varchar\n) as payable_account_id,\n department_id,\n private_note,\n transaction_date,\n cast(vendor_id as \n varchar\n) as vendor_id,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__vendor_credit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__vendor_credit_line_tmp')),\n staging_columns=get_vendor_credit_line_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as {{ dbt_utils.type_string() }}) as account_expense_customer_id,\n cast(account_expense_account_id as {{ dbt_utils.type_string() }}) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n cast(item_expense_customer_id as {{ dbt_utils.type_string() }}) as item_expense_customer_id,\n cast(item_expense_item_id as {{ dbt_utils.type_string() }}) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_vendor_credit_line_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__vendor_credit_line"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__vendor_credit_line.sql", "original_file_path": "models/stg_quickbooks__vendor_credit_line.sql", "name": "stg_quickbooks__vendor_credit_line", "alias": "stg_quickbooks__vendor_credit_line", "checksum": {"name": "sha256", "checksum": "4760dd7449f9de76839a422033d5c255cb30dfd878befdd10a627c60663beea9"}, "tags": [], "refs": [["stg_quickbooks__vendor_credit_line_tmp"], ["stg_quickbooks__vendor_credit_line_tmp"]], "sources": [], "metrics": [], "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": [], "test": ["not_null"]}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__vendor_credit_line.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0741491, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_expense_account_id\n \n as \n \n account_expense_account_id\n \n, \n \n \n account_expense_billable_status\n \n as \n \n account_expense_billable_status\n \n, \n \n \n account_expense_class_id\n \n as \n \n account_expense_class_id\n \n, \n \n \n account_expense_customer_id\n \n as \n \n account_expense_customer_id\n \n, \n \n \n account_expense_tax_amount\n \n as \n \n account_expense_tax_amount\n \n, \n \n \n account_expense_tax_code_id\n \n as \n \n account_expense_tax_code_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n item_expense_billable_status\n \n as \n \n item_expense_billable_status\n \n, \n \n \n item_expense_class_id\n \n as \n \n item_expense_class_id\n \n, \n \n \n item_expense_customer_id\n \n as \n \n item_expense_customer_id\n \n, \n \n \n item_expense_item_id\n \n as \n \n item_expense_item_id\n \n, \n \n \n item_expense_quantity\n \n as \n \n item_expense_quantity\n \n, \n \n \n item_expense_tax_code_id\n \n as \n \n item_expense_tax_code_id\n \n, \n \n \n item_expense_unit_price\n \n as \n \n item_expense_unit_price\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(vendor_credit_id as \n varchar\n) as vendor_credit_id,\n index,\n cast(account_expense_customer_id as \n varchar\n) as account_expense_customer_id,\n cast(account_expense_account_id as \n varchar\n) as account_expense_account_id,\n account_expense_billable_status,\n account_expense_tax_code_id,\n account_expense_class_id,\n cast(item_expense_customer_id as \n varchar\n) as item_expense_customer_id,\n cast(item_expense_item_id as \n varchar\n) as item_expense_item_id,\n item_expense_quantity,\n item_expense_unit_price,\n item_expense_class_id,\n item_expense_billable_status,\n amount,\n description\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line\""}, "model.quickbooks_source.stg_quickbooks__deposit": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_quickbooks__deposit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__deposit_tmp')),\n staging_columns=get_deposit_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as deposit_id,\n cast(account_id as {{ dbt_utils.type_string() }}) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_deposit_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__deposit"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__deposit.sql", "original_file_path": "models/stg_quickbooks__deposit.sql", "name": "stg_quickbooks__deposit", "alias": "stg_quickbooks__deposit", "checksum": {"name": "sha256", "checksum": "68846fdada1ddea1ad77c95f863190ec6e02e1f241fa34a4f2888cfda76a73ba"}, "tags": [], "refs": [["stg_quickbooks__deposit_tmp"], ["stg_quickbooks__deposit_tmp"]], "sources": [], "metrics": [], "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__deposit.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.0355442, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nwith base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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 _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n cash_back_account_id\n \n as \n \n cash_back_account_id\n \n, \n \n \n cash_back_amount\n \n as \n \n cash_back_amount\n \n, \n \n \n cash_back_memo\n \n as \n \n cash_back_memo\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n global_tax_calculation\n \n as \n \n global_tax_calculation\n \n, \n \n \n home_total_amount\n \n as \n \n home_total_amount\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n private_note\n \n as \n \n private_note\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n total_amount\n \n as \n \n total_amount\n \n, \n \n \n transaction_date\n \n as \n \n transaction_date\n \n, \n \n \n transaction_source\n \n as \n \n transaction_source\n \n, \n \n \n transaction_status\n \n as \n \n transaction_status\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as deposit_id,\n cast(account_id as \n varchar\n) as account_id,\n created_at,\n currency_id,\n department_id,\n total_amount,\n transaction_date,\n transaction_status,\n _fivetran_deleted\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\""}, "model.quickbooks_source.stg_quickbooks__item": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__item_tmp')),\n staging_columns=get_item_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as {{ dbt_utils.type_string() }}) as income_account_id,\n cast(asset_account_id as {{ dbt_utils.type_string() }}) as asset_account_id,\n cast(expense_account_id as {{ dbt_utils.type_string() }}) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as {{ dbt_utils.type_string() }}) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_item_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__item"], "unique_id": "model.quickbooks_source.stg_quickbooks__item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__item.sql", "original_file_path": "models/stg_quickbooks__item.sql", "name": "stg_quickbooks__item", "alias": "stg_quickbooks__item", "checksum": {"name": "sha256", "checksum": "b5fe88881ea7edd1df4429ceb0e5c69e740baabdcdf96e90158cce87c9407675"}, "tags": [], "refs": [["stg_quickbooks__item_tmp"], ["stg_quickbooks__item_tmp"]], "sources": [], "metrics": [], "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"item_id": {"name": "item_id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__item.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1664225298.0484962, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n asset_account_id\n \n as \n \n asset_account_id\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n \n \n inventory_start_date\n \n as \n \n inventory_start_date\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_item_id\n \n as \n \n parent_item_id\n \n, \n \n \n purchase_cost\n \n as \n \n purchase_cost\n \n, \n \n \n purchase_description\n \n as \n \n purchase_description\n \n, \n \n \n purchase_tax_code_id\n \n as \n \n purchase_tax_code_id\n \n, \n \n \n purchase_tax_included\n \n as \n \n purchase_tax_included\n \n, \n \n \n quantity_on_hand\n \n as \n \n quantity_on_hand\n \n, \n \n \n sales_tax_code_id\n \n as \n \n sales_tax_code_id\n \n, \n \n \n sales_tax_included\n \n as \n \n sales_tax_included\n \n, \n \n \n stock_keeping_unit\n \n as \n \n stock_keeping_unit\n \n, \n \n \n sub_item\n \n as \n \n sub_item\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n track_quantity_on_hand\n \n as \n \n track_quantity_on_hand\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n unit_price\n \n as \n \n unit_price\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as item_id,\n active as is_active,\n created_at,\n cast(income_account_id as \n varchar\n) as income_account_id,\n cast(asset_account_id as \n varchar\n) as asset_account_id,\n cast(expense_account_id as \n varchar\n) as expense_account_id,\n name,\n purchase_cost,\n taxable,\n type,\n unit_price,\n inventory_start_date,\n cast(parent_item_id as \n varchar\n) as parent_item_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nwith base as (\n\n select *\n from {{ ref('stg_quickbooks__purchase_order_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_quickbooks__purchase_order_linked_txn_tmp')),\n staging_columns=get_purchase_order_linked_txn_columns()\n )\n }}\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as {{ dbt_utils.type_string() }}) as purchase_order_id,\n cast(bill_id as {{ dbt_utils.type_string() }}) as bill_id,\n cast(purchase_id as {{ dbt_utils.type_string() }}) as purchase_id,\n cast(vendor_credit_id as {{ dbt_utils.type_string() }}) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_purchase_order_linked_txn_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__purchase_order_linked_txn"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__purchase_order_linked_txn.sql", "original_file_path": "models/stg_quickbooks__purchase_order_linked_txn.sql", "name": "stg_quickbooks__purchase_order_linked_txn", "alias": "stg_quickbooks__purchase_order_linked_txn", "checksum": {"name": "sha256", "checksum": "8948f3420fc0619f32ff984cee13a4bc9dadd24308f3828b4b75e37262ac372e"}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn_tmp"], ["stg_quickbooks__purchase_order_linked_txn_tmp"]], "sources": [], "metrics": [], "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__purchase_order_linked_txn.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table", "enabled": true}, "created_at": 1664225298.061554, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nwith base as (\n\n select *\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn_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_quickbooks_source/models/tmp/) and compares it with columns\n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n bill_id\n \n as \n \n bill_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n purchase_id\n \n as \n \n purchase_id\n \n, \n \n \n purchase_order_id\n \n as \n \n purchase_order_id\n \n, \n \n \n vendor_credit_id\n \n as \n \n vendor_credit_id\n \n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n cast(purchase_order_id as \n varchar\n) as purchase_order_id,\n cast(bill_id as \n varchar\n) as bill_id,\n cast(purchase_id as \n varchar\n) as purchase_id,\n cast(vendor_credit_id as \n varchar\n) as vendor_credit_id,\n index\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn\""}, "model.quickbooks_source.stg_quickbooks__customer": {"raw_sql": "with base as (\n\n select * \n from {{ ref('stg_quickbooks__customer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_quickbooks__customer_tmp')),\n staging_columns=get_customer_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as {{ dbt_utils.type_string() }}) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable\n\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.quickbooks_source.get_customer_columns", "macro.fivetran_utils.fill_staging_columns", "macro.dbt_utils.type_string"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "stg_quickbooks__customer"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "stg_quickbooks__customer.sql", "original_file_path": "models/stg_quickbooks__customer.sql", "name": "stg_quickbooks__customer", "alias": "stg_quickbooks__customer", "checksum": {"name": "sha256", "checksum": "e7d4734dbe9fcc95ee73a4f1216cd8e6fa1325b24dbd0e6405279c366a98e836"}, "tags": [], "refs": [["stg_quickbooks__customer_tmp"], ["stg_quickbooks__customer_tmp"]], "sources": [], "metrics": [], "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "quickbooks_source://models/stg_quickbooks.yml", "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks__customer.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "table"}, "created_at": 1664225298.031271, "compiled_sql": "with base as (\n\n select * \n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_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_quickbooks_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_quickbooks_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_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n alternate_phone_number\n \n as \n \n alternate_phone_number\n \n, \n \n \n ar_account_id\n \n as \n \n ar_account_id\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balance_with_jobs\n \n as \n \n balance_with_jobs\n \n, \n \n \n bill_address_id\n \n as \n \n bill_address_id\n \n, \n \n \n bill_with_parent\n \n as \n \n bill_with_parent\n \n, \n \n \n company_name\n \n as \n \n company_name\n \n, \n \n \n created_at\n \n as \n \n created_at\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n default_tax_code_id\n \n as \n \n default_tax_code_id\n \n, \n \n \n display_name\n \n as \n \n display_name\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n family_name\n \n as \n \n family_name\n \n, \n \n \n fax_number\n \n as \n \n fax_number\n \n, \n \n \n fully_qualified_name\n \n as \n \n fully_qualified_name\n \n, \n \n \n given_name\n \n as \n \n given_name\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job\n \n as \n \n job\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n mobile_number\n \n as \n \n mobile_number\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n open_balance_date\n \n as \n \n open_balance_date\n \n, \n \n \n parent_customer_id\n \n as \n \n parent_customer_id\n \n, \n \n \n payment_method_id\n \n as \n \n payment_method_id\n \n, \n \n \n phone_number\n \n as \n \n phone_number\n \n, \n \n \n preferred_delivery_method\n \n as \n \n preferred_delivery_method\n \n, \n \n \n print_on_check_name\n \n as \n \n print_on_check_name\n \n, \n \n \n resale_number\n \n as \n \n resale_number\n \n, \n \n \n sales_term_id\n \n as \n \n sales_term_id\n \n, \n \n \n shipping_address_id\n \n as \n \n shipping_address_id\n \n, \n \n \n suffix\n \n as \n \n suffix\n \n, \n \n \n sync_token\n \n as \n \n sync_token\n \n, \n \n \n tax_exemption_reason_id\n \n as \n \n tax_exemption_reason_id\n \n, \n \n \n taxable\n \n as \n \n taxable\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n updated_at\n \n as \n \n updated_at\n \n, \n \n \n website\n \n as \n \n website\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n cast(id as \n varchar\n) as customer_id,\n active as is_active,\n balance,\n balance_with_jobs,\n bill_with_parent,\n company_name,\n fully_qualified_name,\n currency_id,\n display_name,\n website,\n taxable\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nselect * \nfrom {{ var('vendor_credit') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_credit_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "name": "stg_quickbooks__vendor_credit_tmp", "alias": "stg_quickbooks__vendor_credit_tmp", "checksum": {"name": "sha256", "checksum": "2cc1af8b806f60a8aab3cc6b08988da2d3014a246be9ff927ced5d1fda182fc9"}, "tags": [], "refs": [["vendor_credit_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.529404, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nselect * \nfrom {{ var('refund_receipt_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.refund_receipt_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "name": "stg_quickbooks__refund_receipt_line_tmp", "alias": "stg_quickbooks__refund_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "937c4edb6ed96a15d1ed984d79c6306f9ba1fa3a338e5e7a34fc0b3301f0b1c6"}, "tags": [], "refs": [["refund_receipt_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.53459, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nselect * \nfrom {{ var('estimate_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.estimate_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_line_tmp.sql", "name": "stg_quickbooks__estimate_line_tmp", "alias": "stg_quickbooks__estimate_line_tmp", "checksum": {"name": "sha256", "checksum": "c384d015b8964e52ccf18fcbbd2260278d8f2d9b02e79cda1ed35d89514f018d"}, "tags": [], "refs": [["estimate_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.567015, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"estimate_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nselect *\nfrom {{ var('purchase_order_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "name": "stg_quickbooks__purchase_order_line_tmp", "alias": "stg_quickbooks__purchase_order_line_tmp", "checksum": {"name": "sha256", "checksum": "207db6c4ef8cfef78b8de6a2c96cbd0477f63e0a63eda4a08ee215057990ae34"}, "tags": [], "refs": [["purchase_order_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.570545, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": {"raw_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nselect * \nfrom {{ var('credit_memo_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_memo_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "name": "stg_quickbooks__credit_memo_line_tmp", "alias": "stg_quickbooks__credit_memo_line_tmp", "checksum": {"name": "sha256", "checksum": "d3c8e3dc3108ebae669290dc214fc716857dd7b93134587014f90ae22bd89bec"}, "tags": [], "refs": [["credit_memo_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.5807302, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nselect * \nfrom {{ var('journal_entry') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.journal_entry_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_tmp.sql", "name": "stg_quickbooks__journal_entry_tmp", "alias": "stg_quickbooks__journal_entry_tmp", "checksum": {"name": "sha256", "checksum": "61f5ac20efc0252540f3ff70ec87692d2b4635a96ec4ad08e7f8295e9f9e898d"}, "tags": [], "refs": [["journal_entry_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.590855, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nselect * \nfrom {{ var('invoice_line_bundle') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_line_bundle_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "name": "stg_quickbooks__invoice_line_bundle_tmp", "alias": "stg_quickbooks__invoice_line_bundle_tmp", "checksum": {"name": "sha256", "checksum": "ecba6d64adcba0d6a1ec3bed3bdaee051c8b23ce2bd7d6dd87254a92dc772837"}, "tags": [], "refs": [["invoice_line_bundle_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.5943549, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_bundle_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_tmp": {"raw_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\nselect * \nfrom {{ var('payment') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.payment_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_tmp.sql", "name": "stg_quickbooks__payment_tmp", "alias": "stg_quickbooks__payment_tmp", "checksum": {"name": "sha256", "checksum": "68166bc4b2a668928e855e7371c6743a5bf66a1fb1ede8bb2b113ff3e8d9c239"}, "tags": [], "refs": [["payment_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.605082, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"payment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\nselect * \nfrom {{ var('invoice_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_line_tmp.sql", "name": "stg_quickbooks__invoice_line_tmp", "alias": "stg_quickbooks__invoice_line_tmp", "checksum": {"name": "sha256", "checksum": "70e8445c77cc3b476587100fa0123c29ec4a82810ee9517dcc9abcfddd42b835"}, "tags": [], "refs": [["invoice_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.6082299, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nselect * \nfrom {{ var('deposit_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.deposit_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_line_tmp.sql", "name": "stg_quickbooks__deposit_line_tmp", "alias": "stg_quickbooks__deposit_line_tmp", "checksum": {"name": "sha256", "checksum": "c792d5b27123728ccbd7b656a2a720c9880baad2c5102b95e275071fc7019440"}, "tags": [], "refs": [["deposit_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.612082, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"deposit_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__customer_tmp": {"raw_sql": "select * \nfrom {{ var('customer') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.customer_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__customer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__customer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__customer_tmp.sql", "name": "stg_quickbooks__customer_tmp", "alias": "stg_quickbooks__customer_tmp", "checksum": {"name": "sha256", "checksum": "ed57930558565003ebd42e837a90057b26f852767bc32e4a58b19094ecbfa509"}, "tags": [], "refs": [["customer_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__customer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1664225297.622016, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_line_tmp": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_line_tmp.sql", "name": "stg_quickbooks__bill_line_tmp", "alias": "stg_quickbooks__bill_line_tmp", "checksum": {"name": "sha256", "checksum": "65c2cf00e68503a0faa314a95bcb99d9aef127a66b49eed378dba1307b80ff8e"}, "tags": [], "refs": [["bill_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.625023, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__item_tmp": {"raw_sql": "select * \nfrom {{ var('item') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.item_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__item_tmp.sql", "name": "stg_quickbooks__item_tmp", "alias": "stg_quickbooks__item_tmp", "checksum": {"name": "sha256", "checksum": "af4a69cfe57cc894bf2bab8d71ac00aa95dd4ff1b337ad031accdf8059ce4dd9"}, "tags": [], "refs": [["item_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1664225297.631405, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item_tmp\""}, "model.quickbooks_source.stg_quickbooks__account_tmp": {"raw_sql": "select *\nfrom {{ var('account') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.account_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__account_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__account_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__account_tmp.sql", "name": "stg_quickbooks__account_tmp", "alias": "stg_quickbooks__account_tmp", "checksum": {"name": "sha256", "checksum": "89b197ede7e07bf1451016ce108798ac734cb75e9ab2f15a1e3690cd349b91ba"}, "tags": [], "refs": [["account_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__account_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1664225297.6349828, "compiled_sql": "select *\nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": {"raw_sql": "--To disable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_credit_card_payment_txn', False)) }}\n\nselect * \nfrom {{ var('credit_card_payment_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_card_payment_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_card_payment_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "name": "stg_quickbooks__credit_card_payment_txn_tmp", "alias": "stg_quickbooks__credit_card_payment_txn_tmp", "checksum": {"name": "sha256", "checksum": "6e0ed40c647bf9052452bd4985359f82da6b7976a1939626aa3ebd106ab8db02"}, "tags": [], "refs": [["credit_card_payment_txn_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.6378932, "compiled_sql": "--To disable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"credit_card_payment_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_card_payment_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": {"raw_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_vendor_credit', True)) }}\n\nselect * \nfrom {{ var('vendor_credit_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_credit_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_credit_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "name": "stg_quickbooks__vendor_credit_line_tmp", "alias": "stg_quickbooks__vendor_credit_line_tmp", "checksum": {"name": "sha256", "checksum": "78229c53b993c7bcc6d8355993cdc3a2ff5c07117ced9aaef4ea691019361b6f"}, "tags": [], "refs": [["vendor_credit_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_credit_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.652255, "compiled_sql": "--To disable this model, set the using_vendor_credit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__department_tmp": {"raw_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_department', True)) }}\n\nselect * \nfrom {{ var('department') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.department_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__department_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__department_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__department_tmp.sql", "name": "stg_quickbooks__department_tmp", "alias": "stg_quickbooks__department_tmp", "checksum": {"name": "sha256", "checksum": "2fdf3784cf998ce60970941e2839d369cd085661c952946bef8592d1abf32f47"}, "tags": [], "refs": [["department_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__department_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.672273, "compiled_sql": "--To disable this model, set the using_department variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__department_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_tmp": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nselect * \nfrom {{ var('bundle') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bundle_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_tmp.sql", "name": "stg_quickbooks__bundle_tmp", "alias": "stg_quickbooks__bundle_tmp", "checksum": {"name": "sha256", "checksum": "167d7ef377ddda2a70dd33550dc6bd59b65b9e5d3af94c86fd348669b19eba01"}, "tags": [], "refs": [["bundle_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.692926, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bundle_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_tmp\""}, "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": {"raw_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_invoice_bundle', True)) }}\n\nselect * \nfrom {{ var('bundle_item') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bundle_item_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bundle_item_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bundle_item_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bundle_item_tmp.sql", "name": "stg_quickbooks__bundle_item_tmp", "alias": "stg_quickbooks__bundle_item_tmp", "checksum": {"name": "sha256", "checksum": "364c8c25c619bdf90cbc036bd87b84d19b686250398a3a107089a883da7828f6"}, "tags": [], "refs": [["bundle_item_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bundle_item_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.714504, "compiled_sql": "--To disable this model, set the using_invoice_bundle variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bundle_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nselect *\nfrom {{ var('purchase_order') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_tmp.sql", "name": "stg_quickbooks__purchase_order_tmp", "alias": "stg_quickbooks__purchase_order_tmp", "checksum": {"name": "sha256", "checksum": "1a4e5034a6f95a3381e9190114b9b6d75ba273524e532d19926fff7061f286a2"}, "tags": [], "refs": [["purchase_order_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.732838, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_payment_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_payment_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "name": "stg_quickbooks__bill_payment_line_tmp", "alias": "stg_quickbooks__bill_payment_line_tmp", "checksum": {"name": "sha256", "checksum": "d0c2fe19b83418b83ff4d040425de10b4558cb98b74621fce2de76e67bc53992"}, "tags": [], "refs": [["bill_payment_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.7533262, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__estimate_tmp": {"raw_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_estimate', True)) }}\n\nselect * \nfrom {{ var('estimate') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.estimate_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__estimate_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__estimate_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__estimate_tmp.sql", "name": "stg_quickbooks__estimate_tmp", "alias": "stg_quickbooks__estimate_tmp", "checksum": {"name": "sha256", "checksum": "387d86ea42380e18b5a88af69c9801228ec43e7cfca5fe9a2e00151c9c65f451"}, "tags": [], "refs": [["estimate_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__estimate_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.764596, "compiled_sql": "--To disable this model, set the using_estimate variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"estimate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_tmp": {"raw_sql": "select * \nfrom {{ var('purchase') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_tmp.sql", "name": "stg_quickbooks__purchase_tmp", "alias": "stg_quickbooks__purchase_tmp", "checksum": {"name": "sha256", "checksum": "66bc8c4634087951dd5d541ee092908f907fc0a521936fa5753894b2f121f471"}, "tags": [], "refs": [["purchase_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1664225297.78447, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_tmp\""}, "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": {"raw_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_credit_memo', True)) }}\n\nselect * \nfrom {{ var('credit_memo') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.credit_memo_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__credit_memo_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__credit_memo_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__credit_memo_tmp.sql", "name": "stg_quickbooks__credit_memo_tmp", "alias": "stg_quickbooks__credit_memo_tmp", "checksum": {"name": "sha256", "checksum": "5a8abf0f3c86c4d7675fd783d26cd5477bec0e06056f82b8351d333f1df9fe7a"}, "tags": [], "refs": [["credit_memo_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__credit_memo_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.790593, "compiled_sql": "--To enable this model, set the using_credit_memo variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_tmp": {"raw_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_tmp.sql", "name": "stg_quickbooks__bill_tmp", "alias": "stg_quickbooks__bill_tmp", "checksum": {"name": "sha256", "checksum": "13eedc57b03b350d0c228dbf1556178789afabe88eb541806450c0c3856e8dd7"}, "tags": [], "refs": [["bill_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.803689, "compiled_sql": "--To disable this model, set the using_bill variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_tmp\""}, "model.quickbooks_source.stg_quickbooks__transfer_tmp": {"raw_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_transfer', True)) }}\n\nselect * \nfrom {{ var('transfer') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.transfer_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__transfer_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__transfer_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__transfer_tmp.sql", "name": "stg_quickbooks__transfer_tmp", "alias": "stg_quickbooks__transfer_tmp", "checksum": {"name": "sha256", "checksum": "fe093aad89e2c31a8bdcdc76afda4d24dcefa51d92b3233c64524eeba3eef37b"}, "tags": [], "refs": [["transfer_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__transfer_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.825006, "compiled_sql": "--To disable this model, set the using_transfer variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"transfer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer_tmp\""}, "model.quickbooks_source.stg_quickbooks__vendor_tmp": {"raw_sql": "select * \nfrom {{ var('vendor') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.vendor_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__vendor_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__vendor_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__vendor_tmp.sql", "name": "stg_quickbooks__vendor_tmp", "alias": "stg_quickbooks__vendor_tmp", "checksum": {"name": "sha256", "checksum": "8b70affb7fe37710eca09eae95bf632d9d27148f5b733a85704da28973d0488d"}, "tags": [], "refs": [["vendor_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__vendor_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1664225297.845149, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": {"raw_sql": "select * \nfrom {{ var('purchase_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_line_tmp.sql", "name": "stg_quickbooks__purchase_line_tmp", "alias": "stg_quickbooks__purchase_line_tmp", "checksum": {"name": "sha256", "checksum": "4fd11ba6c866de7b7e63ac6b49ad73bda7f7979bd524c1b590bd3199237170e3"}, "tags": [], "refs": [["purchase_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view"}, "created_at": 1664225297.8505611, "compiled_sql": "select * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__address_tmp": {"raw_sql": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_address', True)) }}\n\nselect * \nfrom {{ var('address') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.address_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__address_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__address_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__address_tmp.sql", "name": "stg_quickbooks__address_tmp", "alias": "stg_quickbooks__address_tmp", "checksum": {"name": "sha256", "checksum": "df4f34085d800f3d46de4b2047720a9089ed863de57734e4dcae21288c65ab99"}, "tags": [], "refs": [["address_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.855762, "compiled_sql": "--To disable this model, set the using_address variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address_tmp\""}, "model.quickbooks_source.stg_quickbooks__payment_line_tmp": {"raw_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_payment', True)) }}\n\nselect * \nfrom {{ var('payment_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.payment_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__payment_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__payment_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__payment_line_tmp.sql", "name": "stg_quickbooks__payment_line_tmp", "alias": "stg_quickbooks__payment_line_tmp", "checksum": {"name": "sha256", "checksum": "5f0d1167d49e59ebd3067c62b5669168b1cc2bad26a10183754a6e487d2abb2f"}, "tags": [], "refs": [["payment_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__payment_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.865376, "compiled_sql": "--To enable this model, set the using_payment variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"payment_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": {"raw_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_refund_receipt', True)) }}\n\nselect * \nfrom {{ var('refund_receipt') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.refund_receipt_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__refund_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__refund_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "name": "stg_quickbooks__refund_receipt_tmp", "alias": "stg_quickbooks__refund_receipt_tmp", "checksum": {"name": "sha256", "checksum": "cfee40b115db7fd6bfa6e9e149f1869ac0f7e00dd706ee67d4d84c8206872abf"}, "tags": [], "refs": [["refund_receipt_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__refund_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.873804, "compiled_sql": "--To disable this model, set the using_refund_receipt variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.sales_receipt_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "name": "stg_quickbooks__sales_receipt_tmp", "alias": "stg_quickbooks__sales_receipt_tmp", "checksum": {"name": "sha256", "checksum": "e3359ec9953b6cfab71b2d84d7ea912911eaa099382a7b2ad4a513e432ef65b5"}, "tags": [], "refs": [["sales_receipt_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.883669, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": {"raw_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_payment') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_payment_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_payment_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_payment_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_payment_tmp.sql", "name": "stg_quickbooks__bill_payment_tmp", "alias": "stg_quickbooks__bill_payment_tmp", "checksum": {"name": "sha256", "checksum": "66eda7d6020107bc0e84dcea48b870c6096225de722562f2d762140fd612beaf"}, "tags": [], "refs": [["bill_payment_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_payment_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.89449, "compiled_sql": "--To disable this model, set the using_bill_payment variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_tmp\""}, "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": {"raw_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_journal_entry', True)) }}\n\nselect * \nfrom {{ var('journal_entry_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.journal_entry_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__journal_entry_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__journal_entry_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "name": "stg_quickbooks__journal_entry_line_tmp", "alias": "stg_quickbooks__journal_entry_line_tmp", "checksum": {"name": "sha256", "checksum": "b50644aae9cd93f4b5984e7971224db8d93dafd7f248dfb89364bea6972fcfbf"}, "tags": [], "refs": [["journal_entry_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__journal_entry_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.915016, "compiled_sql": "--To disable this model, set the using_journal_entry variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__deposit_tmp": {"raw_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n{{ config(enabled=var('using_deposit', True)) }}\n\nselect * \nfrom {{ var('deposit') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.deposit_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__deposit_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__deposit_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__deposit_tmp.sql", "name": "stg_quickbooks__deposit_tmp", "alias": "stg_quickbooks__deposit_tmp", "checksum": {"name": "sha256", "checksum": "43224393f0bbff587d3698bbfbbd2ff3cd5f683500cd00a2419c746c005ec5f4"}, "tags": [], "refs": [["deposit_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__deposit_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.936544, "compiled_sql": "--To disable this model, set the using_deposit variable within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"deposit_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_tmp\""}, "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": {"raw_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n{{ config(enabled=var('using_bill', True)) }}\n\nselect * \nfrom {{ var('bill_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.bill_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__bill_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "name": "stg_quickbooks__bill_linked_txn_tmp", "alias": "stg_quickbooks__bill_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "25ee3cc57ef02869b14fd248302c42c2ef078a458770a67ed6364996f5732036"}, "tags": [], "refs": [["bill_linked_txn_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__bill_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.942941, "compiled_sql": "--To disable this model, set the using_bill and using_bill_payment variables within your dbt_project.yml file to False.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"bill_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\nselect * \nfrom {{ var('invoice_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "name": "stg_quickbooks__invoice_linked_txn_tmp", "alias": "stg_quickbooks__invoice_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "9c2e3137b556c864bb7da4ece22641b9d5b00ed36305884828a2450f0d75f64a"}, "tags": [], "refs": [["invoice_linked_txn_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.9518871, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": {"raw_sql": "{{ config(enabled=var('using_sales_receipt', True)) }}\n\nselect * \nfrom {{ var('sales_receipt_line') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.sales_receipt_line_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__sales_receipt_line_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "name": "stg_quickbooks__sales_receipt_line_tmp", "alias": "stg_quickbooks__sales_receipt_line_tmp", "checksum": {"name": "sha256", "checksum": "d8fd3f81fc56b2f40f2fbe97128c7640153e1b01603635543e6a603110ed9057"}, "tags": [], "refs": [["sales_receipt_line_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__sales_receipt_line_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.9577448, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line_tmp\""}, "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_purchase_order', False)) }}\n\nselect *\nfrom {{ var('purchase_order_linked_txn') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__purchase_order_linked_txn_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "name": "stg_quickbooks__purchase_order_linked_txn_tmp", "alias": "stg_quickbooks__purchase_order_linked_txn_tmp", "checksum": {"name": "sha256", "checksum": "d642b45e31ac46f65cca1d76385d5b5ec5dcaa5ff18a1120a440c13f412c575f"}, "tags": [], "refs": [["purchase_order_linked_txn_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__purchase_order_linked_txn_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.974637, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect *\nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_linked_txn_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn_tmp\""}, "model.quickbooks_source.stg_quickbooks__invoice_tmp": {"raw_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n{{ config(enabled=var('using_invoice', True)) }}\n\nselect * \nfrom {{ var('invoice') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["seed.quickbooks_source_integration_tests.invoice_data"]}, "config": {"enabled": true, "alias": null, "schema": "quickbooks_staging", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "quickbooks_source_integration_tests_quickbooks_staging", "fqn": ["quickbooks_source", "tmp", "stg_quickbooks__invoice_tmp"], "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "tmp/stg_quickbooks__invoice_tmp.sql", "original_file_path": "models/tmp/stg_quickbooks__invoice_tmp.sql", "name": "stg_quickbooks__invoice_tmp", "alias": "stg_quickbooks__invoice_tmp", "checksum": {"name": "sha256", "checksum": "94912a9345b3995fc90cbcb50db1e950570080b1c436178b76516a4a602b9fd1"}, "tags": [], "refs": [["invoice_data"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/tmp/stg_quickbooks__invoice_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"schema": "quickbooks_staging", "materialized": "view", "enabled": true}, "created_at": 1664225297.984472, "compiled_sql": "--To enable this model, set the using_invoice variable within your dbt_project.yml file to True.\n\n\nselect * \nfrom \"postgres\".\"quickbooks_source_integration_tests\".\"invoice_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_tmp\""}, "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__account_account_id", "alias": "unique_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.082088, "compiled_sql": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__account_account_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__account_account_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__account_account_id", "alias": "not_null_stg_quickbooks__account_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__account_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.083532, "compiled_sql": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9\") }}", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Asset", "Equity", "Expense", "Liability", "Revenue"], "column_name": "classification", "model": "{{ get_where_subquery(ref('stg_quickbooks__account')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__account"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue", "alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__account"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_e07a6bf709efec96a0a6e115c0aeefe9"}, "created_at": 1664225298.0847921, "compiled_sql": "\n \n \n\nwith all_values as (\n\n select\n classification as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__account\"\n group by classification\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Asset','Equity','Expense','Liability','Revenue'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "classification", "file_key_name": "models.stg_quickbooks__account"}, "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__address_address_id", "alias": "unique_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.091845, "compiled_sql": "\n \n \n\nselect\n address_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is not null\ngroup by address_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "address_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__address')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__address"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__address_address_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__address_address_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__address_address_id", "alias": "not_null_stg_quickbooks__address_address_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__address"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__address_address_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.0929542, "compiled_sql": "\n \n \n\n\n\nselect address_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__address\"\nwhere address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "address_id", "file_key_name": "models.stg_quickbooks__address"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_line_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_line_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_line_bill_id", "alias": "not_null_stg_quickbooks__bill_line_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_line_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.094238, "compiled_sql": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_line\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_line"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.095308, "compiled_sql": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_linked_txn_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.0963142, "compiled_sql": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_linked_txn\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_line_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_line_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_line_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.0977302, "compiled_sql": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment_line\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment_line"}, "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_payment_bill_payment_id", "alias": "unique_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.0988002, "compiled_sql": "\n \n \n\nselect\n bill_payment_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is not null\ngroup by bill_payment_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill_payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill_payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_payment_bill_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "alias": "not_null_stg_quickbooks__bill_payment_bill_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill_payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_payment_bill_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.0998452, "compiled_sql": "\n \n \n\n\n\nselect bill_payment_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill_payment\"\nwhere bill_payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_payment_id", "file_key_name": "models.stg_quickbooks__bill_payment"}, "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bill_bill_id", "alias": "unique_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.10093, "compiled_sql": "\n \n \n\nselect\n bill_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is not null\ngroup by bill_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bill_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bill')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bill"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bill_bill_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bill_bill_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bill_bill_id", "alias": "not_null_stg_quickbooks__bill_bill_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bill"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bill_bill_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1021938, "compiled_sql": "\n \n \n\n\n\nselect bill_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bill\"\nwhere bill_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bill_id", "file_key_name": "models.stg_quickbooks__bill"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle_item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle_item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_item_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_item_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_item_bundle_id", "alias": "not_null_stg_quickbooks__bundle_item_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle_item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_item_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.103303, "compiled_sql": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle_item\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle_item"}, "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__bundle_bundle_id", "alias": "unique_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.104365, "compiled_sql": "\n \n \n\nselect\n bundle_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is not null\ngroup by bundle_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "bundle_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__bundle_bundle_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__bundle_bundle_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__bundle_bundle_id", "alias": "not_null_stg_quickbooks__bundle_bundle_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__bundle_bundle_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.105481, "compiled_sql": "\n \n \n\n\n\nselect bundle_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__bundle\"\nwhere bundle_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "bundle_id", "file_key_name": "models.stg_quickbooks__bundle"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_line_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_line_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_line_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1064541, "compiled_sql": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo_line\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo_line"}, "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__credit_memo_credit_memo_id", "alias": "unique_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.107424, "compiled_sql": "\n \n \n\nselect\n credit_memo_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is not null\ngroup by credit_memo_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "credit_memo_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__credit_memo')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__credit_memo"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__credit_memo_credit_memo_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "alias": "not_null_stg_quickbooks__credit_memo_credit_memo_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__credit_memo"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__credit_memo_credit_memo_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.108393, "compiled_sql": "\n \n \n\n\n\nselect credit_memo_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__credit_memo\"\nwhere credit_memo_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "credit_memo_id", "file_key_name": "models.stg_quickbooks__credit_memo"}, "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__customer_customer_id", "alias": "unique_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.109529, "compiled_sql": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__customer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__customer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__customer_customer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__customer_customer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__customer_customer_id", "alias": "not_null_stg_quickbooks__customer_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__customer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__customer_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1105669, "compiled_sql": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__customer\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_quickbooks__customer"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_line_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_line_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_line_deposit_id", "alias": "not_null_stg_quickbooks__deposit_line_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_line_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.11163, "compiled_sql": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit_line\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit_line"}, "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__deposit_deposit_id", "alias": "unique_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1129248, "compiled_sql": "\n \n \n\nselect\n deposit_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is not null\ngroup by deposit_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "deposit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__deposit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__deposit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__deposit_deposit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__deposit_deposit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__deposit_deposit_id", "alias": "not_null_stg_quickbooks__deposit_deposit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__deposit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__deposit_deposit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.114012, "compiled_sql": "\n \n \n\n\n\nselect deposit_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__deposit\"\nwhere deposit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "deposit_id", "file_key_name": "models.stg_quickbooks__deposit"}, "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__estimate_estimate_id", "alias": "unique_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1149828, "compiled_sql": "\n \n \n\nselect\n estimate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is not null\ngroup by estimate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_estimate_id", "alias": "not_null_stg_quickbooks__estimate_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.11594, "compiled_sql": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate"}, "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "estimate_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__estimate_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__estimate_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__estimate_line_estimate_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__estimate_line_estimate_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__estimate_line_estimate_id", "alias": "not_null_stg_quickbooks__estimate_line_estimate_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__estimate_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__estimate_line_estimate_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.117024, "compiled_sql": "\n \n \n\n\n\nselect estimate_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__estimate_line\"\nwhere estimate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "estimate_id", "file_key_name": "models.stg_quickbooks__estimate_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_linked_txn_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "alias": "not_null_stg_quickbooks__invoice_linked_txn_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_linked_txn_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1179898, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_linked_txn\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_linked_txn"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.118947, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice_line_bundle')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_line_bundle_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "alias": "not_null_stg_quickbooks__invoice_line_bundle_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice_line_bundle"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_line_bundle_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.120092, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice_line_bundle\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice_line_bundle"}, "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__invoice_invoice_id", "alias": "unique_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.121173, "compiled_sql": "\n \n \n\nselect\n invoice_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is not null\ngroup by invoice_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "invoice_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__invoice')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__invoice"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__invoice_invoice_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__invoice_invoice_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__invoice_invoice_id", "alias": "not_null_stg_quickbooks__invoice_invoice_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__invoice"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__invoice_invoice_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1222441, "compiled_sql": "\n \n \n\n\n\nselect invoice_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__invoice\"\nwhere invoice_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "invoice_id", "file_key_name": "models.stg_quickbooks__invoice"}, "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__item_item_id", "alias": "unique_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.123341, "compiled_sql": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__item')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__item"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__item_item_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__item_item_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__item_item_id", "alias": "not_null_stg_quickbooks__item_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__item"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__item_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.124563, "compiled_sql": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__item\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_quickbooks__item"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_line_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_line_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_line_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1255229, "compiled_sql": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55\") }}", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Credit", "Debit"], "column_name": "posting_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit", "alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b036fbffbcb85c40f92072d6f5f9ff55"}, "created_at": 1664225298.126503, "compiled_sql": "\n \n \n\nwith all_values as (\n\n select\n posting_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry_line\"\n group by posting_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Credit','Debit'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "posting_type", "file_key_name": "models.stg_quickbooks__journal_entry_line"}, "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__journal_entry_journal_entry_id", "alias": "unique_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1295109, "compiled_sql": "\n \n \n\nselect\n journal_entry_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is not null\ngroup by journal_entry_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "journal_entry_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__journal_entry')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__journal_entry"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__journal_entry_journal_entry_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "alias": "not_null_stg_quickbooks__journal_entry_journal_entry_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__journal_entry"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__journal_entry_journal_entry_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.130656, "compiled_sql": "\n \n \n\n\n\nselect journal_entry_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__journal_entry\"\nwhere journal_entry_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "journal_entry_id", "file_key_name": "models.stg_quickbooks__journal_entry"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_line_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_line_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_line_payment_id", "alias": "not_null_stg_quickbooks__payment_line_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_line_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1318882, "compiled_sql": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment_line\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment_line"}, "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__payment_payment_id", "alias": "unique_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1329129, "compiled_sql": "\n \n \n\nselect\n payment_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is not null\ngroup by payment_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "payment_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__payment')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__payment"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__payment_payment_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__payment_payment_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__payment_payment_id", "alias": "not_null_stg_quickbooks__payment_payment_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__payment"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__payment_payment_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1339269, "compiled_sql": "\n \n \n\n\n\nselect payment_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__payment\"\nwhere payment_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_id", "file_key_name": "models.stg_quickbooks__payment"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_line_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_line_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_line_purchase_id", "alias": "not_null_stg_quickbooks__purchase_line_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_line_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.135085, "compiled_sql": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_line\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase_line"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_purchase_id", "alias": "unique_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1361222, "compiled_sql": "\n \n \n\nselect\n purchase_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is not null\ngroup by purchase_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_purchase_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_purchase_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_purchase_id", "alias": "not_null_stg_quickbooks__purchase_purchase_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_purchase_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.137121, "compiled_sql": "\n \n \n\n\n\nselect purchase_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\nwhere purchase_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_id", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216\") }}", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Cash", "Check", "CreditCard"], "column_name": "payment_type", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard", "alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b3d99f90b13d6a36cf512ed42db44216"}, "created_at": 1664225298.138168, "compiled_sql": "\n \n \n\nwith all_values as (\n\n select\n payment_type as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase\"\n group by payment_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Cash','Check','CreditCard'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "payment_type", "file_key_name": "models.stg_quickbooks__purchase"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_line_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_line_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_order_line_purchase_order_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.141873, "compiled_sql": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_line\"\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_line"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order_linked_txn')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"]}, "config": {"enabled": true, "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id", "alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order_linked_txn"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_quickbooks__purch_f65b0771229ffce1e0cec6cb8fa708f1"}, "created_at": 1664225298.143245, "compiled_sql": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order_linked_txn\"\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order_linked_txn"}, "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__purchase_order_purchase_order_id", "alias": "unique_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__purchase_order_purchase_order_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.144336, "compiled_sql": "\n \n \n\nselect\n purchase_order_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\"\nwhere purchase_order_id is not null\ngroup by purchase_order_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "purchase_order_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__purchase_order_purchase_order_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "alias": "not_null_stg_quickbooks__purchase_order_purchase_order_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__purchase_order_purchase_order_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.145309, "compiled_sql": "\n \n \n\n\n\nselect purchase_order_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\"\nwhere purchase_order_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "purchase_order_id", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": {"raw_sql": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614\") }}", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["Open", "Closed"], "column_name": "status", "model": "{{ get_where_subquery(ref('stg_quickbooks__purchase_order')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__purchase_order"]}, "config": {"enabled": true, "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"], "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "accepted_values_stg_quickbooks__purchase_order_status__Open__Closed", "alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__purchase_order"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "accepted_values_stg_quickbooks_b59f9d5f36eebc1dfce3c2fd46711614"}, "created_at": 1664225298.1462872, "compiled_sql": "\n \n \n\nwith all_values as (\n\n select\n status as value_field,\n count(*) as n_records\n\n from \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__purchase_order\"\n group by status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'Open','Closed'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "status", "file_key_name": "models.stg_quickbooks__purchase_order"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_line_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_line_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_line_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.149085, "compiled_sql": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt_line\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt_line"}, "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__refund_receipt_refund_id", "alias": "unique_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1503842, "compiled_sql": "\n \n \n\nselect\n refund_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is not null\ngroup by refund_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "refund_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__refund_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__refund_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__refund_receipt_refund_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__refund_receipt_refund_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__refund_receipt_refund_id", "alias": "not_null_stg_quickbooks__refund_receipt_refund_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__refund_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__refund_receipt_refund_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.151499, "compiled_sql": "\n \n \n\n\n\nselect refund_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__refund_receipt\"\nwhere refund_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "refund_id", "file_key_name": "models.stg_quickbooks__refund_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt_line')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt_line"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1525528, "compiled_sql": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt_line\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt_line"}, "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "unique_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.15357, "compiled_sql": "\n \n \n\nselect\n sales_receipt_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is not null\ngroup by sales_receipt_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "sales_receipt_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__sales_receipt')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__sales_receipt"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__sales_receipt_sales_receipt_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "alias": "not_null_stg_quickbooks__sales_receipt_sales_receipt_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__sales_receipt"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__sales_receipt_sales_receipt_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.154714, "compiled_sql": "\n \n \n\n\n\nselect sales_receipt_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__sales_receipt\"\nwhere sales_receipt_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "sales_receipt_id", "file_key_name": "models.stg_quickbooks__sales_receipt"}, "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__transfer_transfer_id", "alias": "unique_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.155679, "compiled_sql": "\n \n \n\nselect\n transfer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is not null\ngroup by transfer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transfer_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__transfer')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__transfer"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__transfer_transfer_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__transfer_transfer_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__transfer_transfer_id", "alias": "not_null_stg_quickbooks__transfer_transfer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__transfer"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__transfer_transfer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.156634, "compiled_sql": "\n \n \n\n\n\nselect transfer_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__transfer\"\nwhere transfer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transfer_id", "file_key_name": "models.stg_quickbooks__transfer"}, "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "unique_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1577432, "compiled_sql": "\n \n \n\nselect\n vendor_credit_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is not null\ngroup by vendor_credit_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_credit_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor_credit')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor_credit"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_credit_vendor_credit_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "alias": "not_null_stg_quickbooks__vendor_credit_vendor_credit_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor_credit"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_credit_vendor_credit_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.158707, "compiled_sql": "\n \n \n\n\n\nselect vendor_credit_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor_credit\"\nwhere vendor_credit_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_credit_id", "file_key_name": "models.stg_quickbooks__vendor_credit"}, "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "unique_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "unique_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "unique_stg_quickbooks__vendor_vendor_id", "alias": "unique_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/unique_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.159675, "compiled_sql": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}, "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_quickbooks__vendor')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.quickbooks_source.stg_quickbooks__vendor"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "quickbooks_source_integration_tests_dbt_test__audit", "fqn": ["quickbooks_source", "not_null_stg_quickbooks__vendor_vendor_id"], "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "not_null_stg_quickbooks__vendor_vendor_id.sql", "original_file_path": "models/stg_quickbooks.yml", "name": "not_null_stg_quickbooks__vendor_vendor_id", "alias": "not_null_stg_quickbooks__vendor_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_quickbooks__vendor"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/quickbooks_source/models/stg_quickbooks.yml/not_null_stg_quickbooks__vendor_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1664225298.1607308, "compiled_sql": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"quickbooks_source_integration_tests_quickbooks_staging\".\"stg_quickbooks__vendor\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_quickbooks__vendor"}}, "sources": {"source.quickbooks_source.quickbooks.account": {"fqn": ["quickbooks_source", "quickbooks", "account"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.account", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "account", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "account", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing components of a Chart Of Accounts and is part of a ledger. It is used to record a total monetary amount allocated against a specific use. Accounts are one of five basic types: asset, liability, revenue (income), expenses, or equity.\n", "columns": {"id": {"name": "id", "description": "Unique identifier for an account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "User-defined account number intended to identify the account within the Chart of Accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_account": {"name": "sub_account", "description": "Specifies whether this object represents a parent (false) or a sub_account (true).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_account_id": {"name": "parent_account_id", "description": "User entered description for the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "User recognizable name for the Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type": {"name": "account_type", "description": "A detailed account classification that specifies the use of this account. The type is based on the Classification.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether an account is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_sub_type": {"name": "account_sub_type", "description": "The account sub-type classification and is based on the AccountType value.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "classification": {"name": "classification", "description": "The classification of an account. Not supported for non-posting accounts. Valid values include Asset, Equity, Expense, Liability, Revenue.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the account was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the account records the balance in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the balance amount for the current Account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_sub_accounts": {"name": "balance_with_sub_accounts", "description": "Specifies the balance amount for the current Account sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date which the account was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"account\"", "created_at": 1664225298.229491}, "source.quickbooks_source.quickbooks.address": {"fqn": ["quickbooks_source", "quickbooks", "address"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.address", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "address", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "address", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing address details.", "columns": {"id": {"name": "id", "description": "Unique identifier for an address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_1": {"name": "line_1", "description": "The address_line_1 associated with the address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "line_2": {"name": "line_2", "description": "The address_line_2 associated with the address (if applicable).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postal_code": {"name": "postal_code", "description": "The postal code which the address is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"address\"", "created_at": 1664225298.2296069}, "source.quickbooks_source.quickbooks.bill_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing distinct line items from bills within the `bill` table.", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the parent bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Bill line index in reference to the parent bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer reference associated with the account based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer reference associated with the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense bill line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "The id of the account being expensed from the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "The status of the bill line item expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "The tax code id associated with the bill.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the bill line item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_line\"", "created_at": 1664225298.229686}, "source.quickbooks_source.quickbooks.bill_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "bill_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_linked_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing bill payment transactions linked to a bill.", "columns": {"bill_id": {"name": "bill_id", "description": "The unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a single bill record associated with payment ids.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment id record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_linked_txn\"", "created_at": 1664225298.229751}, "source.quickbooks_source.quickbooks.bill_payment_line": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a bill payment, which are recorded within the `bill_payment` table.", "columns": {"bill_payment_id": {"name": "bill_payment_id", "description": "The unique identifier of the bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of payments associated with the parent bill payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_id": {"name": "expense_id", "description": "Unique identifier of the purchase record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linked_bill_payment_id": {"name": "linked_bill_payment_id", "description": "Unique identifier of the bill record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor_credit record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record associated with the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment_line\"", "created_at": 1664225298.229822}, "source.quickbooks_source.quickbooks.bill_payment": {"fqn": ["quickbooks_source", "quickbooks", "bill_payment"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bill_payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill_payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill_payment", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing payment transactions bills that the business owner receives from a vendor for goods or services purchased from the vendor.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_bank_account_id": {"name": "check_bank_account_id", "description": "Account id of the account which the bill payment is credited. Only applicable if bill payment `pay_type` is of type check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "check_print_status": {"name": "check_print_status", "description": "Status of the check which was used as payment for the bill. Only applicable if bill payment `pay_type` is of type Check.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Account id of the account which the bill is credited. Only applicable if bill payment `pay_type` is of type CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by CurrencyRef. Applicable if multicurrency is enabled for the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to a Department object specifying the location of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "pay_type": {"name": "pay_type", "description": "The payment type. Valid values include Check, CreditCard", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount associated with this payment. This includes the total of all the payments from the payment line details.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the day the took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill_payment\"", "created_at": 1664225298.2298949}, "source.quickbooks_source.quickbooks.bill": {"fqn": ["quickbooks_source", "quickbooks", "bill"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bill", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bill", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bill", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing AP transactions representing a request-for-payment from a third party for goods/services rendered, received, or both.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bill record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total monetary amount of all bill line items.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor the bill is linked with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the bill is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the bill transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id of the account which the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bill\"", "created_at": 1664225298.22997}, "source.quickbooks_source.quickbooks.bundle_item": {"fqn": ["quickbooks_source", "quickbooks", "bundle_item"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle_item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle_item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle_item", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table containing all bundle and item combinations", "columns": {"bundle_id": {"name": "bundle_id", "description": "Reference to the bundle table.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item which the bundle is mapped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_quantity": {"name": "item_quantity", "description": "Total item quantity associated with the bunlde and item mapping.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bundle_item\"", "created_at": 1664225298.230029}, "source.quickbooks_source.quickbooks.bundle": {"fqn": ["quickbooks_source", "quickbooks", "bundle"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "bundle", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all bundles possible to be used within an invoice.", "columns": {"id": {"name": "id", "description": "Unique identifier of the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the bundle was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the bundle is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Full name given to the bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the bundle was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"bundle\"", "created_at": 1664225298.230091}, "source.quickbooks_source.quickbooks.credit_card_payment_txn": {"fqn": ["quickbooks_source", "quickbooks", "credit_card_payment_txn"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_card_payment_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_card_payment_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_card_payment_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all credit card payment transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total amount of money applied to the credit card payment transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bank_account_id": {"name": "bank_account_id", "description": "Reference to the bank account which the credit card payment is debited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_card_account_id": {"name": "credit_card_account_id", "description": "Reference to the credit card account which the credit card payment is credited towards.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp when the credit card payment was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp when the credit card payment was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency used for the credit card payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Date the credit card payment transaction took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean indicating if the credit card payment was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_card_payment_txn\"", "created_at": 1664225298.230159}, "source.quickbooks_source.quickbooks.credit_memo_line": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records of credit memos.", "columns": {"credit_memo_id": {"name": "credit_memo_id", "description": "Unique identifier of the credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records from a credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item related to the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount credit memo record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the credit memo line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo_line\"", "created_at": 1664225298.2302258}, "source.quickbooks_source.quickbooks.credit_memo": {"fqn": ["quickbooks_source", "quickbooks", "credit_memo"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.credit_memo", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "credit_memo", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "credit_memo", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing credit memo records. A credit memo is a refund or credit of payment or part of a payment for goods or services that have been sold.", "columns": {"id": {"name": "id", "description": "Unique identifier for a credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the credit memo.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the credit memo occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"credit_memo\"", "created_at": 1664225298.230294}, "source.quickbooks_source.quickbooks.customer": {"fqn": ["quickbooks_source", "quickbooks", "customer"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.customer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "customer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "customer", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing customers of which are consumers of the service or product that your business offers.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether it is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance_with_jobs": {"name": "balance_with_jobs", "description": "Cumulative open balance amount for the Customer (or Job) and all its sub-jobs.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_with_parent": {"name": "bill_with_parent", "description": "Boolean indicating whether this Customer object is billed with its parent.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Full name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this customer are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "Name of the customer which is displayed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "website": {"name": "website", "description": "The website url associated with the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the customer is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"customer\"", "created_at": 1664225298.23036}, "source.quickbooks_source.quickbooks.department": {"fqn": ["quickbooks_source", "quickbooks", "department"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.department", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "department", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "department", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records representing physical locations such as stores, and sales regions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Boolean indicating whether the department is currently active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the department was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "updated_at": {"name": "updated_at", "description": "Timestamp of the date when the department was last updated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fully_qualified_name": {"name": "fully_qualified_name", "description": "Fully qualified name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sub_department": {"name": "sub_department", "description": "Boolean indicating whether the department is a sub department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_department_id": {"name": "parent_department_id", "description": "Reference to the unique identifier of the parent department if sub_department = true.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"department\"", "created_at": 1664225298.230423}, "source.quickbooks_source.quickbooks.deposit_line": {"fqn": ["quickbooks_source", "quickbooks", "deposit_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items comprising the deposit.", "columns": {"deposit_id": {"name": "deposit_id", "description": "Unique identifier of the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the deposit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the deposit line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_class_id": {"name": "deposit_class_id", "description": "Reference to the class which the deposit line record is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_account_id": {"name": "deposit_account_id", "description": "Account id of the account which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_customer_id": {"name": "deposit_customer_id", "description": "Customer id of the customer which the deposit is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"deposit_line\"", "created_at": 1664225298.230485}, "source.quickbooks_source.quickbooks.deposit": {"fqn": ["quickbooks_source", "quickbooks", "deposit"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.deposit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "deposit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "deposit", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transactions that record on or more deposits of a customer payment or a new direct deposit.", "columns": {"id": {"name": "id", "description": "Unique identifier of the deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Identifies the account to be used for this deposit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date which the deposit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the deposit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Status of the deposit transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"deposit\"", "created_at": 1664225298.230552}, "source.quickbooks_source.quickbooks.estimate": {"fqn": ["quickbooks_source", "quickbooks", "estimate"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing estimates. An estimate represents a proposal for a financial transaction from a business to a customer for goods or services proposed to be sold, including proposed pricing.", "columns": {"id": {"name": "id", "description": "Unique identifier of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the estimate was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency which the estimate was provided.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the estimate is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Total amount of all line items included in the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the estimate occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_status": {"name": "transaction_status", "description": "Current status of the estimate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"estimate\"", "created_at": 1664225298.230617}, "source.quickbooks_source.quickbooks.estimate_line": {"fqn": ["quickbooks_source", "quickbooks", "estimate_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.estimate_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "estimate_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "estimate_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing line item records of an estimate.", "columns": {"estimate_id": {"name": "estimate_id", "description": "Reference to the unique estimate record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the estimate line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to the account associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Reference to the class associated with the discount estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Reference to the account associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Reference to the class associated with the sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the item associated with a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for a sales estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item for the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the estimate line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"estimate_line\"", "created_at": 1664225298.230734}, "source.quickbooks_source.quickbooks.invoice_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "invoice_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_linked_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for invoices records to respective estimate and payment objects.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Reference to the unique invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_id": {"name": "payment_id", "description": "Reference to the respective payment object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "estimate_id": {"name": "estimate_id", "description": "Reference to the respective estimate object for the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_linked_txn\"", "created_at": 1664225298.230793}, "source.quickbooks_source.quickbooks.invoice_line": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual records from invoices.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the invoice line record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_class_id": {"name": "sales_item_class_id", "description": "Class reference for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item for an item invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Account reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_class_id": {"name": "discount_class_id", "description": "Class reference for a discount invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_quantity": {"name": "bundle_quantity", "description": "Quantity of items included in the invoice bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bundle_id": {"name": "bundle_id", "description": "Reference to the bundle associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item associated with the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Quantity of the item included on the invoice line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line\"", "created_at": 1664225298.2308621}, "source.quickbooks_source.quickbooks.invoice_line_bundle": {"fqn": ["quickbooks_source", "quickbooks", "invoice_line_bundle"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice_line_bundle", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice_line_bundle", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice_line_bundle", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing lines of an invoice which were bundled.", "columns": {"invoice_id": {"name": "invoice_id", "description": "Unique identifier of the invoice record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class associated with the invoice line bundle.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Total monetary value of the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Reference to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "Reference to the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quantity": {"name": "quantity", "description": "Total quantity of the item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity in relation to the sales item on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "Unit price of the line item included on the invoice bundle line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice_line_bundle\"", "created_at": 1664225298.230926}, "source.quickbooks_source.quickbooks.invoice": {"fqn": ["quickbooks_source", "quickbooks", "invoice"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.invoice", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "invoice", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "invoice", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing invoice records. An Invoice represents a sales form where the customer pays for a product or service later.", "columns": {"id": {"name": "id", "description": "Unique identifier of the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the deposit transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer reference associated with the invoice.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Reference to the address where the invoice is billed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Reference to the address where the invoice is to be shipped.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "delivery_type": {"name": "delivery_type", "description": "How the invoice is delivered to the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date which the invoice payment is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"invoice\"", "created_at": 1664225298.230998}, "source.quickbooks_source.quickbooks.item": {"fqn": ["quickbooks_source", "quickbooks", "item"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.item", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "item", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "item", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing item records. An item is a thing that your company buys, sells, or re-sells, such as products and services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the object is currently enabled for use by QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the item was created within QuickBooks.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the posting account, that is, the account that records the proceeds from the sale of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the Inventory Asset account that tracks the current value of the inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account used to pay the vendor for this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "inventory_start_date": {"name": "inventory_start_date", "description": "Timestamp of the date the item was started as inventory.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Full name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_cost": {"name": "purchase_cost", "description": "Amount paid when buying or ordering the item, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxable": {"name": "taxable", "description": "Boolean indicating whether the item is taxable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "Classification that specifies the use of this item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unit_price": {"name": "unit_price", "description": "The monetary value of the service or product, as expressed in the home currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"item\"", "created_at": 1664225298.23107}, "source.quickbooks_source.quickbooks.journal_entry_line": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a journal entry.", "columns": {"journal_entry_id": {"name": "journal_entry_id", "description": "Unique identifier of the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the journal entry record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Account id of the account which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer which the journal entry is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the journal entry is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billable_status": {"name": "billable_status", "description": "Status of the journal entry indicating whether it is billable or not.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the journal entry line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting_type": {"name": "posting_type", "description": "Indicates whether this JournalEntry line is a debit or credit. Valid values are Credit and Debit", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry_line\"", "created_at": 1664225298.231137}, "source.quickbooks_source.quickbooks.journal_entry": {"fqn": ["quickbooks_source", "quickbooks", "journal_entry"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.journal_entry", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "journal_entry", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "journal_entry", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing journal entry transactions.", "columns": {"id": {"name": "id", "description": "Unique identifier of the journal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "adjustment": {"name": "adjustment", "description": "Indicates the total amount of the transaction. This includes the total of all the charges, allowances, and taxes. By default, this is recalculated by the system based on sub-items total and overridden.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the journal entry was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "The value of this field will always be set to zero.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the journal entry was transacted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"journal_entry\"", "created_at": 1664225298.2312021}, "source.quickbooks_source.quickbooks.payment_line": {"fqn": ["quickbooks_source", "quickbooks", "payment_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.payment_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items recorded within a payment.", "columns": {"payment_id": {"name": "payment_id", "description": "Unique identifier of the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the payment record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the payment line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "journal_entry_id": {"name": "journal_entry_id", "description": "Journal entry reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_id": {"name": "deposit_id", "description": "Deposit reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "invoice_id": {"name": "invoice_id", "description": "Invoice reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_memo_id": {"name": "credit_memo_id", "description": "credit memo reference associated with the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"payment_line\"", "created_at": 1664225298.231267}, "source.quickbooks_source.quickbooks.payment": {"fqn": ["quickbooks_source", "quickbooks", "payment"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.payment", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "payment", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "payment", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all payment records. The payment can be applied for a particular customer against multiple Invoices and Credit Memos. It can also be created without any Invoice or Credit Memo, by just specifying an amount.", "columns": {"id": {"name": "id", "description": "Unique identifier of the payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unapplied_amount": {"name": "unapplied_amount", "description": "Indicates the amount that has not been applied to pay amounts owed for sales transactions.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivable_account_id": {"name": "receivable_account_id", "description": "Identifies the account for obtaining a receivable from this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Identifies the account to be used for this payment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the payment occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to a customer or job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"payment\"", "created_at": 1664225298.231334}, "source.quickbooks_source.quickbooks.purchase_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase.", "columns": {"purchase_id": {"name": "purchase_id", "description": "Unique identifier of the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_line\"", "created_at": 1664225298.2313979}, "source.quickbooks_source.quickbooks.purchase": {"fqn": ["quickbooks_source", "quickbooks", "purchase"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase expenses.", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Specifies the account reference to which this purchase is applied based on the PaymentType.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Boolean where `false` represents a charge and `true` represents a refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Reference to the customer which the purchase is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payment_type": {"name": "payment_type", "description": "Payment type of the purchase. Type can be Cash, Check, or CreditCard.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase\"", "created_at": 1664225298.231466}, "source.quickbooks_source.quickbooks.purchase_order_line": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a transaction associated with a purchase order.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Unique identifier of the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account which the purchase order is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the purchase billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "The customer id associated with the account based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code reference associated to the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "The customer id associated with the item based purchase order line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the purchase.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the purchase line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_line\"", "created_at": 1664225298.231531}, "source.quickbooks_source.quickbooks.purchase_order_linked_txn": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order_linked_txn"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order_linked_txn", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order_linked_txn", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order_linked_txn", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Mapping table for purchase order records to respective bill and purchase objects.", "columns": {"purchase_order_id": {"name": "purchase_order_id", "description": "Reference to the unique purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "bill_id": {"name": "bill_id", "description": "Reference to the respective bill object for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "purchase_id": {"name": "purchase_id", "description": "Reference to the respective purchase object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_credit_id": {"name": "vendor_credit_id", "description": "Reference to the respective vendor credit object for the purchase_order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the purchase order mapping record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order_linked_txn\"", "created_at": 1664225298.2315898}, "source.quickbooks_source.quickbooks.purchase_order": {"fqn": ["quickbooks_source", "quickbooks", "purchase_order"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.purchase_order", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "purchase_order", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "purchase_order", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of purchase orders (PO).", "columns": {"id": {"name": "id", "description": "Unique identifier of the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the purchase order is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the purchase order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_po_number": {"name": "custom_po_number", "description": "Custom field for PO number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "custom_customer_type": {"name": "custom_customer_type", "description": "Custom field for customer type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "Timestamp of the date when the purchase order is due.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "A message for the vendor. This text appears on the purchase order object sent to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date when the purchase order occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction. This note does not appear on the purchase order to the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Account id for which the purchase order will credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Purchase order status. Valid values are \"Open\" and \"Closed\".", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for the purchase order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"purchase_order\"", "created_at": 1664225298.2316842}, "source.quickbooks_source.quickbooks.refund_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a refund transaction.", "columns": {"refund_id": {"name": "refund_id", "description": "Unique identifier of the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the refund record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "User defined description of the refund line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Quantity of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item associated with the refund receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account which the refund is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the refunded item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt_line\"", "created_at": 1664225298.231748}, "source.quickbooks_source.quickbooks.refund_receipt": {"fqn": ["quickbooks_source", "quickbooks", "refund_receipt"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.refund_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "refund_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "refund_receipt", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing refunds to the customer for a product or service that was provided.", "columns": {"id": {"name": "id", "description": "Unique identifier of the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the refund receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account from which payment money is refunded.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the refund was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the customer credited with the refund.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date in which the refund occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"refund_receipt\"", "created_at": 1664225298.231816}, "source.quickbooks_source.quickbooks.sales_receipt_line": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual line items of a sales transaction.", "columns": {"sales_receipt_id": {"name": "sales_receipt_id", "description": "Unique identifier of the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the sales record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the sales receipt line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "discount_account_id": {"name": "discount_account_id", "description": "Reference to Income account used to track discounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_account_id": {"name": "sales_item_account_id", "description": "Account id of the account credited with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_item_id": {"name": "sales_item_item_id", "description": "Item id of the item sold in the sale line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_tax_code_id": {"name": "sales_item_tax_code_id", "description": "Tax code id of the tax code associated with the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_quantity": {"name": "sales_item_quantity", "description": "Total quantity of items included in the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_item_unit_price": {"name": "sales_item_unit_price", "description": "Unit price of the item included on the sales line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt_line\"", "created_at": 1664225298.2318778}, "source.quickbooks_source.quickbooks.sales_receipt": {"fqn": ["quickbooks_source", "quickbooks", "sales_receipt"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.sales_receipt", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "sales_receipt", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "sales_receipt", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing sales receipts that are given to a customer. A sales receipt, payment is received as part of the sale of goods and services. The sales receipt specifies a deposit account where the customer's payment is deposited.", "columns": {"id": {"name": "id", "description": "Unique identifier of the sales receipt.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The balance reflecting any payments made against the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total amount of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deposit_to_account_id": {"name": "deposit_to_account_id", "description": "Account to which payment money is deposited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the sale was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "Customer id of the sold to customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "Reference to the class which the sales receipt is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the sale occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"sales_receipt\"", "created_at": 1664225298.2319438}, "source.quickbooks_source.quickbooks.transfer": {"fqn": ["quickbooks_source", "quickbooks", "transfer"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.transfer", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "transfer", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "transfer", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing records of transfers. A Transfer represents a transaction where funds are moved between two accounts from the company's QuickBooks chart of accounts.", "columns": {"id": {"name": "id", "description": "Unique identifier of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the transfer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_account_id": {"name": "from_account_id", "description": "Account id of the account which the transfer is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_account_id": {"name": "to_account_id", "description": "Account id of the account which the transfer is to.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "Timestamp of the date which the transfer occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"transfer\"", "created_at": 1664225298.232003}, "source.quickbooks_source.quickbooks.vendor_credit_line": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit_line"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit_line", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit_line", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit_line", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing individual vendor credit line items.", "columns": {"vendor_credit_id": {"name": "vendor_credit_id", "description": "Unique identifier of the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "index": {"name": "index", "description": "Index count of records associated with the vendor credit record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_account_id": {"name": "account_expense_account_id", "description": "Account id of the account credited for the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_billable_status": {"name": "account_expense_billable_status", "description": "Status of the billable related to the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_tax_code_id": {"name": "account_expense_tax_code_id", "description": "Tax code id of the tax code associated with the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_customer_id": {"name": "account_expense_customer_id", "description": "Customer reference for the vendor credit expense.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_expense_class_id": {"name": "account_expense_class_id", "description": "The class reference associated with the account based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_customer_id": {"name": "item_expense_customer_id", "description": "Customer reference for the item on the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_item_id": {"name": "item_expense_item_id", "description": "The item reference associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_quantity": {"name": "item_expense_quantity", "description": "Quantity of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_unit_price": {"name": "item_expense_unit_price", "description": "Unit price of the item within the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_class_id": {"name": "item_expense_class_id", "description": "Reference to the class associated with the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_expense_billable_status": {"name": "item_expense_billable_status", "description": "The billable status of the item based expense vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "Monetary amount of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the vendor credit line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit_line\"", "created_at": 1664225298.232071}, "source.quickbooks_source.quickbooks.vendor_credit": {"fqn": ["quickbooks_source", "quickbooks", "vendor_credit"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor_credit", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor_credit", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor_credit", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor credit records. A vendor credit is an accounts payable transaction that represents a refund or credit of payment for goods or services.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "The current amount of the vendor credit reflecting any adjustments to the original credit amount.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "total_amount": {"name": "total_amount", "description": "Indicates the total credit amount, determined by taking the total of all all lines of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "doc_number": {"name": "doc_number", "description": "Reference number for the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts on the associated transaction are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "exchange_rate": {"name": "exchange_rate", "description": "The number of home currency units it takes to equal one unit of currency specified by currency_id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date the vendor credit was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "payable_account_id": {"name": "payable_account_id", "description": "Specifies to which AP account the bill is credited.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "Reference to the department which the vendor credit is associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "private_note": {"name": "private_note", "description": "User entered, organization-private note about the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The date entered by the user when this transaction occurred.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Reference to the vendor for this transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor_credit\"", "created_at": 1664225298.232139}, "source.quickbooks_source.quickbooks.vendor": {"fqn": ["quickbooks_source", "quickbooks", "vendor"], "database": "postgres", "schema": "quickbooks_source_integration_tests", "unique_id": "source.quickbooks_source.quickbooks.vendor", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "models/src_quickbooks.yml", "original_file_path": "models/src_quickbooks.yml", "name": "vendor", "source_name": "quickbooks", "source_description": "", "loader": "fivetran", "identifier": "vendor", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 48, "period": "hour"}, "error_after": {"count": 72, "period": "hour"}, "filter": null}, "external": null, "description": "Table containing all vendor records. A vendor is the seller from whom your company purchases any service or product.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Name or number of the account associated with this vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Address reference for the billing address of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "active": {"name": "active", "description": "Boolean indicating whether the vendor is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balance": {"name": "balance", "description": "Specifies the open balance amount or the amount unpaid by the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company associated with the person or organization.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of the date when the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "Reference to the currency in which all amounts associated with this vendor are expressed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "display_name": {"name": "display_name", "description": "The name of the vendor as displayed. Must be unique across all Vendor, Customer, and Employee objects.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "web_url": {"name": "web_url", "description": "Website url associated with the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_1099": {"name": "vendor_1099", "description": "Boolean indicating whether this vendor is an independent contractor; someone who is given a 1099-MISC form at the end of the year.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"quickbooks_source_integration_tests\".\"vendor\"", "created_at": 1664225298.232206}}, "macros": {"macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.21874}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.21952}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.225367}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.225879}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.226206}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.226534}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.227017}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.227403}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.227571}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.227925}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.228341}, "macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2284229}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2286038}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2287092}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.22965}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.229849}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.230174}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.230449}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.230884}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.231117}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.231741}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.231946}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.23206}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2329001}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2331898}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.233867}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.237175}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2374861}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.238076}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.238548}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2396438}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.23984}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.23998}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2401211}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.240256}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.240685}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.241069}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.241367}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2418509}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.242111}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.245412}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.245579}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.245795}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2459362}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.24603}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.246939}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2471418}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.247326}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_sql'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.248804}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.250258}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.254125}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.254421}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.254595}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.254687}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2548401}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.254957}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.25517}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2560582}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2562492}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2565088}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.25695}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.263211}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2655602}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2660968}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2664058}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.266838}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.267211}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.268081}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.268645}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.269282}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2742631}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2757592}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.276096}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.276852}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2771258}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.27776}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.278548}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = get_delete_insert_merge_sql(target_relation, temp_relation, unique_key, dest_columns) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.283039}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2874591}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2886689}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2898839}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.290623}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.29328}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.293817}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.294013}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.294219}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.294657}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.29728}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.297652}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.29789}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.2994711}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.299912}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3000839}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3002691}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.300534}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.304075}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.308779}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.309696}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.309932}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.31041}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.310601}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.31073}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.310865}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.310975}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.311135}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.311245}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.311719}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.311899}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.313162}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.313751}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.313975}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.314558}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.314879}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.315289}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3159192}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.316192}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.316635}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.317015}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.31733}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.317965}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.319149}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.319765}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.320072}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.321813}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.323107}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.323872}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.324119}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.324437}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3245142}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.324909}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3250759}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.325384}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.325506}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.325834}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3259351}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.326328}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.326495}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.326785}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3268569}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.327177}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.327316}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3276658}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.327797}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.32846}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.328927}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.329328}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.329487}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3298402}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3299918}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3303108}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3304698}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3307672}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.330921}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.331234}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.331336}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.331678}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.331813}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.332133}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.332233}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3331058}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.333257}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3334131}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3335779}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.333807}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3339572}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.334115}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.334285}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3344471}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3346078}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.33477}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.334912}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3352299}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.335331}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.335724}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.335994}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.336142}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3367648}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.336948}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.33718}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.337568}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.337707}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.338146}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.338345}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.338517}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.338787}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3393111}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.339443}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3396008}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.340021}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.343064}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.343232}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.34345}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3437471}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.34399}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.344312}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.344497}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3447108}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.344898}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3450549}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.345259}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.345545}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.345799}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.346427}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3466618}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3467991}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3469892}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3475158}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter '+adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.34766}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3478882}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.348314}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.349958}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.350077}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.350247}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.350358}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.350713}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.350909}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.351012}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.351243}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3514419}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.351679}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.351873}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.352107}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3529449}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.353151}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.353406}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.353651}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.354849}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3556778}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.355849}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.356065}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.356233}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.356504}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.356993}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.35841}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.358669}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.358855}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3590028}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3591921}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3594491}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.359662}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.359974}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.360167}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.360329}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.362068}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3623521}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.36269}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.362889}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.363245}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.363487}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.364201}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.364505}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3653078}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3659918}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3662279}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.366511}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.366782}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.367133}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3672059}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3672802}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.367674}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n \n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.367841}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.36817}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.368289}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.368999}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3690722}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.36922}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.369292}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.369368}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.369531}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.369608}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3696792}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.36975}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.369916}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3699882}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370056}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370222}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370294}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370365}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3705258}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370595}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370677}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370838}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370909}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.370982}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3715892}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.372085}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.372316}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ dbt_utils.type_string() }}){%- endset -%}\n {{ dbt_utils.replace(dbt_utils.replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3726232}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.372788}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.37289}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.373255}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.373356}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3734531}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.374049}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.374214}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.374374}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.37453}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3747241}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.37503}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3751009}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3751721}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.375554}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.375695}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3758268}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.375954}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.376544}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.376677}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.376891}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.377043}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.379221}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3796191}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.379925}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n \n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.380322}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.381293}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.383892}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.384057}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.384217}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.386274}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.386483}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.386965}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3871071}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3872378}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.387362}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3877351}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.387876}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.388017}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.388428}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.388576}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3887029}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3892689}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.389379}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.389476}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3898299}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n \n any_value({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3899279}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3900301}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3904362}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.390569}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.390698}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.391076}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.391178}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.391777}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.391883}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.391953}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3920178}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.392171}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3922791}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.392419}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.392525}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.392651}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.394059}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3945222}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3949819}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.395176}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3956008}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3957329}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3958678}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.396}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.396388}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n \n bool_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.396491}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.396655}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3967528}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.397355}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.397625}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3977711}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.398164}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.398338}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.399761}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.3999202}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.400157}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4005709}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "redshift__split_part", "macro_sql": "{% macro redshift__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.400936}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4013288}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4017842}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4019141}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4020422}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.402619}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.402865}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.403005}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.40314}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4032798}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.404269}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.404726}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.404855}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4050372}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4052238}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.410762}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.411288}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4116118}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.412117}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.417245}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.417771}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.418271}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.418806}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4194932}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.419901}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.420225}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4207969}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.421024}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.421463}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'coalesce(diff_count, 0)') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.42176}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.42244}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.422766}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.423229}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.423553}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4239218}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.424093}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.424732}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.425262}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4258492}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.426226}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.426684}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4268491}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.427242}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.427417}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4280589}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.428693}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.429311}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4296489}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.430155}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.430437}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.430905}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\nwith validation as (\n select\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n),\nvalidation_errors as (\n select\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.431423}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.432103}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4327738}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.433244}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.433414}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.434187}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.435067}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.438047}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions nore cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4395509}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4399}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.440067}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.440395}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.440591}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.440906}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4410748}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.441586}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4422982}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{dbt_utils.datediff(start_date, end_date, datepart)}}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4428868}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.443119}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt_utils.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4434729}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.443852}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.444263}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4449668}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.445822}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.446662}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.447077}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.44727}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.447791}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.448506}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.449346}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4498281}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4501061}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4508212}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('*') }}\n {% endif %}\n\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.451786}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.453474}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4555619}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.458047}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.461108}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4615328}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.461785}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4641879}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4644082}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.464607}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.464798}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.46496}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4651241}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4657521}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.466667}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.467102}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.467374}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.467766}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4680882}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.469559}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.469825}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.470612}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4711108}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.472219}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4737}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.474793}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt_utils.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.475625}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.476135}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.476846}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.477282}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4778612}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.478364}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4784472}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.478525}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.478605}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.479712}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.480012}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.481536}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.48257}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4830542}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.483983}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.484149}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.484307}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4844658}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.484604}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.484763}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.485239}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4859378}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.486997}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.487242}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.487486}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.487724}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.487964}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.488226}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.488488}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4888608}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.488959}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.489057}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4892192}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.489653}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.490277}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4909341}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.491445}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4915771}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4917052}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.49183}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.491958}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.494665}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.494825}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.49498}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.495135}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.496886}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.4977899}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.497934}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.498207}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.49849}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.498621}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.498744}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.498868}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.499416}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.499999}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.500542}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.500743}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.500965}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5012841}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5021608}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.506037}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5063941}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.506846}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.508378}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.508922}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.509521}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5096781}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.509828}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.509996}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.510147}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.510292}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5110111}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.511986}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.512703}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.512866}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.513021}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.513182}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.513338}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.513511}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.513818}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.513917}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.514011}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5147781}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.51599}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=database,\n schema=var(schema_variable, default_schema),\n identifier=table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.51771}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.519142}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5194721}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5195708}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5196722}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.520119}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.520567}, "macro.quickbooks_source.get_deposit_line_columns": {"unique_id": "macro.quickbooks_source.get_deposit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_line_columns.sql", "original_file_path": "macros/get_deposit_line_columns.sql", "name": "get_deposit_line_columns", "macro_sql": "{% macro get_deposit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_transaction_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"detail_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transfer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.52338}, "macro.quickbooks_source.get_vendor_credit_line_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_line_columns.sql", "original_file_path": "macros/get_vendor_credit_line_columns.sql", "name": "get_vendor_credit_line_columns", "macro_sql": "{% macro get_vendor_credit_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.525613}, "macro.quickbooks_source.get_account_columns": {"unique_id": "macro.quickbooks_source.get_account_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_account_columns.sql", "original_file_path": "macros/get_account_columns.sql", "name": "get_account_columns", "macro_sql": "{% macro get_account_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_sub_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_sub_accounts\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"classification\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_account\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.527736}, "macro.quickbooks_source.get_purchase_order_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_linked_txn_columns.sql", "original_file_path": "macros/get_purchase_order_linked_txn_columns.sql", "name": "get_purchase_order_linked_txn_columns", "macro_sql": "{% macro get_purchase_order_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5286038}, "macro.quickbooks_source.get_sales_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_line_columns.sql", "original_file_path": "macros/get_sales_receipt_line_columns.sql", "name": "get_sales_receipt_line_columns", "macro_sql": "{% macro get_sales_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_receipt_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.531279}, "macro.quickbooks_source.get_bill_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_bill_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_linked_txn_columns.sql", "original_file_path": "macros/get_bill_linked_txn_columns.sql", "name": "get_bill_linked_txn_columns", "macro_sql": "{% macro get_bill_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5319738}, "macro.quickbooks_source.get_bill_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_line_columns.sql", "original_file_path": "macros/get_bill_payment_line_columns.sql", "name": "get_bill_payment_line_columns", "macro_sql": "{% macro get_bill_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_credit_card_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"linked_bill_payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_credit_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.533637}, "macro.quickbooks_source.get_transfer_columns": {"unique_id": "macro.quickbooks_source.get_transfer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_transfer_columns.sql", "original_file_path": "macros/get_transfer_columns.sql", "name": "get_transfer_columns", "macro_sql": "{% macro get_transfer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"from_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.535018}, "macro.quickbooks_source.get_purchase_columns": {"unique_id": "macro.quickbooks_source.get_purchase_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_columns.sql", "original_file_path": "macros/get_purchase_columns.sql", "name": "get_purchase_columns", "macro_sql": "{% macro get_purchase_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit\", \"datatype\": \"boolean\"},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remit_to_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.537993}, "macro.quickbooks_source.get_journal_entry_line_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_line_columns.sql", "original_file_path": "macros/get_journal_entry_line_columns.sql", "name": "get_journal_entry_line_columns", "macro_sql": "{% macro get_journal_entry_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"posting_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tax_applicable_on\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.540142}, "macro.quickbooks_source.get_deposit_columns": {"unique_id": "macro.quickbooks_source.get_deposit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_deposit_columns.sql", "original_file_path": "macros/get_deposit_columns.sql", "name": "get_deposit_columns", "macro_sql": "{% macro get_deposit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cash_back_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cash_back_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.54239}, "macro.quickbooks_source.get_purchase_order_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_columns.sql", "original_file_path": "macros/get_purchase_order_columns.sql", "name": "get_purchase_order_columns", "macro_sql": "{% macro get_purchase_order_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_customer_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_po_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.545393}, "macro.quickbooks_source.get_credit_memo_line_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_line_columns.sql", "original_file_path": "macros/get_credit_memo_line_columns.sql", "name": "get_credit_memo_line_columns", "macro_sql": "{% macro get_credit_memo_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.548193}, "macro.quickbooks_source.get_journal_entry_columns": {"unique_id": "macro.quickbooks_source.get_journal_entry_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_journal_entry_columns.sql", "original_file_path": "macros/get_journal_entry_columns.sql", "name": "get_journal_entry_columns", "macro_sql": "{% macro get_journal_entry_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"adjustment\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.550056}, "macro.quickbooks_source.get_vendor_columns": {"unique_id": "macro.quickbooks_source.get_vendor_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_columns.sql", "original_file_path": "macros/get_vendor_columns.sql", "name": "get_vendor_columns", "macro_sql": "{% macro get_vendor_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"other_contacts\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"primary_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_identifier\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_1099\", \"datatype\": \"boolean\"},\n {\"name\": \"web_url\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5534022}, "macro.quickbooks_source.get_invoice_linked_txn_columns": {"unique_id": "macro.quickbooks_source.get_invoice_linked_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_linked_txn_columns.sql", "original_file_path": "macros/get_invoice_linked_txn_columns.sql", "name": "get_invoice_linked_txn_columns", "macro_sql": "{% macro get_invoice_linked_txn_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"charge_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reimburse_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"statement_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_activity_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.554611}, "macro.quickbooks_source.get_item_columns": {"unique_id": "macro.quickbooks_source.get_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_item_columns.sql", "original_file_path": "macros/get_item_columns.sql", "name": "get_item_columns", "macro_sql": "{% macro get_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"asset_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"inventory_start_date\", \"datatype\": \"date\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"quantity_on_hand\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_tax_included\", \"datatype\": \"boolean\"},\n {\"name\": \"stock_keeping_unit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_item\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"track_quantity_on_hand\", \"datatype\": \"boolean\"},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5576599}, "macro.quickbooks_source.get_credit_memo_columns": {"unique_id": "macro.quickbooks_source.get_credit_memo_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_memo_columns.sql", "original_file_path": "macros/get_credit_memo_columns.sql", "name": "get_credit_memo_columns", "macro_sql": "{% macro get_credit_memo_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"remaining_credit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.561246}, "macro.quickbooks_source.get_bundle_item_columns": {"unique_id": "macro.quickbooks_source.get_bundle_item_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_item_columns.sql", "original_file_path": "macros/get_bundle_item_columns.sql", "name": "get_bundle_item_columns", "macro_sql": "{% macro get_bundle_item_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_quantity\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.562021}, "macro.quickbooks_source.get_payment_columns": {"unique_id": "macro.quickbooks_source.get_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_columns.sql", "original_file_path": "macros/get_payment_columns.sql", "name": "get_payment_columns", "macro_sql": "{% macro get_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"receivable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unapplied_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.565902}, "macro.quickbooks_source.get_vendor_credit_columns": {"unique_id": "macro.quickbooks_source.get_vendor_credit_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_vendor_credit_columns.sql", "original_file_path": "macros/get_vendor_credit_columns.sql", "name": "get_vendor_credit_columns", "macro_sql": "{% macro get_vendor_credit_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.568011}, "macro.quickbooks_source.get_refund_receipt_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_columns.sql", "original_file_path": "macros/get_refund_receipt_columns.sql", "name": "get_refund_receipt_columns", "macro_sql": "{% macro get_refund_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_bank_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_check_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_payment_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.574181}, "macro.quickbooks_source.get_bill_columns": {"unique_id": "macro.quickbooks_source.get_bill_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_columns.sql", "original_file_path": "macros/get_bill_columns.sql", "name": "get_bill_columns", "macro_sql": "{% macro get_bill_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": \"date\"},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5765681}, "macro.quickbooks_source.get_credit_card_payment_txn_columns": {"unique_id": "macro.quickbooks_source.get_credit_card_payment_txn_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_credit_card_payment_txn_columns.sql", "original_file_path": "macros/get_credit_card_payment_txn_columns.sql", "name": "get_credit_card_payment_txn_columns", "macro_sql": "{% macro get_credit_card_payment_txn_columns() %}\n\n{% set columns = [ \t\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bank_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.577905}, "macro.quickbooks_source.get_bill_line_columns": {"unique_id": "macro.quickbooks_source.get_bill_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_line_columns.sql", "original_file_path": "macros/get_bill_line_columns.sql", "name": "get_bill_line_columns", "macro_sql": "{% macro get_bill_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.579967}, "macro.quickbooks_source.get_customer_columns": {"unique_id": "macro.quickbooks_source.get_customer_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_customer_columns.sql", "original_file_path": "macros/get_customer_columns.sql", "name": "get_customer_columns", "macro_sql": "{% macro get_customer_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"alternate_phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ar_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balance_with_jobs\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bill_with_parent\", \"datatype\": \"boolean\"},\n {\"name\": \"company_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"default_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"display_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"family_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"given_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"job\", \"datatype\": \"boolean\"},\n {\"name\": \"level\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"notes\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"open_balance_date\", \"datatype\": \"date\"},\n {\"name\": \"parent_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"preferred_delivery_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_on_check_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"resale_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"suffix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_exemption_reason_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"website\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.58471}, "macro.quickbooks_source.get_invoice_columns": {"unique_id": "macro.quickbooks_source.get_invoice_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_columns.sql", "original_file_path": "macros/get_invoice_columns.sql", "name": "get_invoice_columns", "macro_sql": "{% macro get_invoice_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"allow_ipnpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_achpayment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_credit_card_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"allow_online_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_bcc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_cc_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_p_o_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custom_sales_rep\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.590166}, "macro.quickbooks_source.get_payment_line_columns": {"unique_id": "macro.quickbooks_source.get_payment_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_payment_line_columns.sql", "original_file_path": "macros/get_payment_line_columns.sql", "name": "get_payment_line_columns", "macro_sql": "{% macro get_payment_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"check_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_charge_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_credit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_memo_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"journal_entry_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5917811}, "macro.quickbooks_source.get_department_columns": {"unique_id": "macro.quickbooks_source.get_department_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_department_columns.sql", "original_file_path": "macros/get_department_columns.sql", "name": "get_department_columns", "macro_sql": "{% macro get_department_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sub_department\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.593042}, "macro.quickbooks_source.get_invoice_line_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_columns.sql", "original_file_path": "macros/get_invoice_line_columns.sql", "name": "get_invoice_line_columns", "macro_sql": "{% macro get_invoice_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.5962172}, "macro.quickbooks_source.get_purchase_order_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_order_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_order_line_columns.sql", "original_file_path": "macros/get_purchase_order_line_columns.sql", "name": "get_purchase_order_line_columns", "macro_sql": "{% macro get_purchase_order_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_order_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.598304}, "macro.quickbooks_source.get_purchase_line_columns": {"unique_id": "macro.quickbooks_source.get_purchase_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_purchase_line_columns.sql", "original_file_path": "macros/get_purchase_line_columns.sql", "name": "get_purchase_line_columns", "macro_sql": "{% macro get_purchase_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_expense_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"account_expense_tax_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"account_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_billable_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_expense_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_expense_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.600418}, "macro.quickbooks_source.get_refund_receipt_line_columns": {"unique_id": "macro.quickbooks_source.get_refund_receipt_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_refund_receipt_line_columns.sql", "original_file_path": "macros/get_refund_receipt_line_columns.sql", "name": "get_refund_receipt_line_columns", "macro_sql": "{% macro get_refund_receipt_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": \"date\"},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"refund_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": \"date\"},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.603203}, "macro.quickbooks_source.get_estimate_columns": {"unique_id": "macro.quickbooks_source.get_estimate_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_columns.sql", "original_file_path": "macros/get_estimate_columns.sql", "name": "get_estimate_columns", "macro_sql": "{% macro get_estimate_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accepted_by\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accepted_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"expiration_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_term_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.6073081}, "macro.quickbooks_source.get_bill_payment_columns": {"unique_id": "macro.quickbooks_source.get_bill_payment_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bill_payment_columns.sql", "original_file_path": "macros/get_bill_payment_columns.sql", "name": "get_bill_payment_columns", "macro_sql": "{% macro get_bill_payment_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"check_bank_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"check_print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pay_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payable_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"process_bill_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.6095948}, "macro.quickbooks_source.get_sales_receipt_columns": {"unique_id": "macro.quickbooks_source.get_sales_receipt_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_sales_receipt_columns.sql", "original_file_path": "macros/get_sales_receipt_columns.sql", "name": "get_sales_receipt_columns", "macro_sql": "{% macro get_sales_receipt_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"apply_tax_after_discount\", \"datatype\": \"boolean\"},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bill_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"credit_card_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit_card_auth_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_billing_address_street\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_month\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cc_expiry_year\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_cctrans_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_name_on_account\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_postal_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_process_payment\", \"datatype\": \"boolean\"},\n {\"name\": \"credit_card_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"credit_card_transaction_authorization_time\", \"datatype\": \"date\"},\n {\"name\": \"credit_card_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"delivery_time\", \"datatype\": \"date\"},\n {\"name\": \"delivery_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deposit_to_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"doc_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchange_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"global_tax_calculation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"home_total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payment_reference_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"private_note\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ship_date\", \"datatype\": \"date\"},\n {\"name\": \"shipping_address_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"total_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"total_tax\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tracking_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction_date\", \"datatype\": \"date\"},\n {\"name\": \"transaction_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.615318}, "macro.quickbooks_source.get_bundle_columns": {"unique_id": "macro.quickbooks_source.get_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_bundle_columns.sql", "original_file_path": "macros/get_bundle_columns.sql", "name": "get_bundle_columns", "macro_sql": "{% macro get_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"active\", \"datatype\": \"boolean\"},\n {\"name\": \"created_at\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fully_qualified_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"print_grouped_items\", \"datatype\": \"boolean\"},\n {\"name\": \"purchase_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sync_token\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxable\", \"datatype\": \"boolean\"},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"updated_at\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.616881}, "macro.quickbooks_source.get_estimate_line_columns": {"unique_id": "macro.quickbooks_source.get_estimate_line_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_estimate_line_columns.sql", "original_file_path": "macros/get_estimate_line_columns.sql", "name": "get_estimate_line_columns", "macro_sql": "{% macro get_estimate_line_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"bundle_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"bundle_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"description_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_discount_percent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_percent_based\", \"datatype\": \"boolean\"},\n {\"name\": \"discount_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimate_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_unit_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sub_total_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.620026}, "macro.quickbooks_source.get_address_columns": {"unique_id": "macro.quickbooks_source.get_address_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_address_columns.sql", "original_file_path": "macros/get_address_columns.sql", "name": "get_address_columns", "macro_sql": "{% macro get_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_sub_division_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"latitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_4\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_5\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"longitude\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"postal_code\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.621558}, "macro.quickbooks_source.get_invoice_line_bundle_columns": {"unique_id": "macro.quickbooks_source.get_invoice_line_bundle_columns", "package_name": "quickbooks_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/quickbooks/dbt_quickbooks_source/integration_tests/dbt_packages/quickbooks_source", "path": "macros/get_invoice_line_bundle_columns.sql", "original_file_path": "macros/get_invoice_line_bundle_columns.sql", "name": "get_invoice_line_bundle_columns", "macro_sql": "{% macro get_invoice_line_bundle_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"discount_amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"discount_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoice_line_index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line_num\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_account_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_item_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sales_item_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sales_item_tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"service_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"tax_code_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unit_price\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1664225296.624009}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.2.1/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.quickbooks_source_integration_tests.bill_payment_data": [], "seed.quickbooks_source_integration_tests.bundle_data": [], "seed.quickbooks_source_integration_tests.bill_payment_line_data": [], "seed.quickbooks_source_integration_tests.payment_line_data": [], "seed.quickbooks_source_integration_tests.vendor_data": [], "seed.quickbooks_source_integration_tests.address_data": [], "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": [], "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": [], "seed.quickbooks_source_integration_tests.invoice_data": [], "seed.quickbooks_source_integration_tests.payment_data": [], "seed.quickbooks_source_integration_tests.invoice_line_data": [], "seed.quickbooks_source_integration_tests.deposit_line_data": [], "seed.quickbooks_source_integration_tests.estimate_line_data": [], "seed.quickbooks_source_integration_tests.purchase_data": [], "seed.quickbooks_source_integration_tests.refund_receipt_line_data": [], "seed.quickbooks_source_integration_tests.credit_memo_line_data": [], "seed.quickbooks_source_integration_tests.bill_data": [], "seed.quickbooks_source_integration_tests.bill_linked_txn_data": [], "seed.quickbooks_source_integration_tests.vendor_credit_data": [], "seed.quickbooks_source_integration_tests.customer_data": [], "seed.quickbooks_source_integration_tests.estimate_data": [], "seed.quickbooks_source_integration_tests.purchase_line_data": [], "seed.quickbooks_source_integration_tests.journal_entry_line_data": [], "seed.quickbooks_source_integration_tests.journal_entry_data": [], "seed.quickbooks_source_integration_tests.bill_line_data": [], "seed.quickbooks_source_integration_tests.bundle_item_data": [], "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": [], "seed.quickbooks_source_integration_tests.account_data": [], "seed.quickbooks_source_integration_tests.purchase_order_line_data": [], "seed.quickbooks_source_integration_tests.transfer_data": [], "seed.quickbooks_source_integration_tests.purchase_order_data": [], "seed.quickbooks_source_integration_tests.sales_receipt_line_data": [], "seed.quickbooks_source_integration_tests.vendor_credit_line_data": [], "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data": [], "seed.quickbooks_source_integration_tests.credit_memo_data": [], "seed.quickbooks_source_integration_tests.department_data": [], "seed.quickbooks_source_integration_tests.item_data": [], "seed.quickbooks_source_integration_tests.sales_receipt_data": [], "seed.quickbooks_source_integration_tests.deposit_data": [], "seed.quickbooks_source_integration_tests.refund_receipt_data": [], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "model.quickbooks_source.stg_quickbooks__transfer": ["model.quickbooks_source.stg_quickbooks__transfer_tmp", "model.quickbooks_source.stg_quickbooks__transfer_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__payment_line": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp", "model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor": ["model.quickbooks_source.stg_quickbooks__vendor_tmp", "model.quickbooks_source.stg_quickbooks__vendor_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "model.quickbooks_source.stg_quickbooks__estimate": ["model.quickbooks_source.stg_quickbooks__estimate_tmp", "model.quickbooks_source.stg_quickbooks__estimate_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle": ["model.quickbooks_source.stg_quickbooks__bundle_tmp", "model.quickbooks_source.stg_quickbooks__bundle_tmp"], "model.quickbooks_source.stg_quickbooks__department": ["model.quickbooks_source.stg_quickbooks__department_tmp", "model.quickbooks_source.stg_quickbooks__department_tmp"], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": ["model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp", "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_line": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "model.quickbooks_source.stg_quickbooks__purchase": ["model.quickbooks_source.stg_quickbooks__purchase_tmp", "model.quickbooks_source.stg_quickbooks__purchase_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp", "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp", "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp", "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__invoice": ["model.quickbooks_source.stg_quickbooks__invoice_tmp", "model.quickbooks_source.stg_quickbooks__invoice_tmp"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp", "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "model.quickbooks_source.stg_quickbooks__account": ["model.quickbooks_source.stg_quickbooks__account_tmp", "model.quickbooks_source.stg_quickbooks__account_tmp"], "model.quickbooks_source.stg_quickbooks__payment": ["model.quickbooks_source.stg_quickbooks__payment_tmp", "model.quickbooks_source.stg_quickbooks__payment_tmp"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp", "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__address": ["model.quickbooks_source.stg_quickbooks__address_tmp", "model.quickbooks_source.stg_quickbooks__address_tmp"], "model.quickbooks_source.stg_quickbooks__bill": ["model.quickbooks_source.stg_quickbooks__bill_tmp", "model.quickbooks_source.stg_quickbooks__bill_tmp"], "model.quickbooks_source.stg_quickbooks__bill_line": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp", "model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp", "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp", "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp", "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp", "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "model.quickbooks_source.stg_quickbooks__deposit": ["model.quickbooks_source.stg_quickbooks__deposit_tmp", "model.quickbooks_source.stg_quickbooks__deposit_tmp"], "model.quickbooks_source.stg_quickbooks__item": ["model.quickbooks_source.stg_quickbooks__item_tmp", "model.quickbooks_source.stg_quickbooks__item_tmp"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "model.quickbooks_source.stg_quickbooks__customer": ["model.quickbooks_source.stg_quickbooks__customer_tmp", "model.quickbooks_source.stg_quickbooks__customer_tmp"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["seed.quickbooks_source_integration_tests.vendor_credit_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["seed.quickbooks_source_integration_tests.refund_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["seed.quickbooks_source_integration_tests.estimate_line_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_line_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["seed.quickbooks_source_integration_tests.credit_memo_line_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["seed.quickbooks_source_integration_tests.journal_entry_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["seed.quickbooks_source_integration_tests.invoice_line_bundle_data"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["seed.quickbooks_source_integration_tests.payment_data"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["seed.quickbooks_source_integration_tests.invoice_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["seed.quickbooks_source_integration_tests.deposit_line_data"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["seed.quickbooks_source_integration_tests.customer_data"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["seed.quickbooks_source_integration_tests.bill_line_data"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["seed.quickbooks_source_integration_tests.item_data"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["seed.quickbooks_source_integration_tests.account_data"], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": ["seed.quickbooks_source_integration_tests.credit_card_payment_txn_data"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["seed.quickbooks_source_integration_tests.vendor_credit_line_data"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["seed.quickbooks_source_integration_tests.department_data"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["seed.quickbooks_source_integration_tests.bundle_data"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["seed.quickbooks_source_integration_tests.bundle_item_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["seed.quickbooks_source_integration_tests.bill_payment_line_data"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["seed.quickbooks_source_integration_tests.estimate_data"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["seed.quickbooks_source_integration_tests.purchase_data"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["seed.quickbooks_source_integration_tests.credit_memo_data"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["seed.quickbooks_source_integration_tests.bill_data"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["seed.quickbooks_source_integration_tests.transfer_data"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["seed.quickbooks_source_integration_tests.vendor_data"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["seed.quickbooks_source_integration_tests.purchase_line_data"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["seed.quickbooks_source_integration_tests.address_data"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["seed.quickbooks_source_integration_tests.payment_line_data"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["seed.quickbooks_source_integration_tests.refund_receipt_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["seed.quickbooks_source_integration_tests.sales_receipt_data"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["seed.quickbooks_source_integration_tests.bill_payment_data"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["seed.quickbooks_source_integration_tests.journal_entry_line_data"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["seed.quickbooks_source_integration_tests.deposit_data"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.bill_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.invoice_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["seed.quickbooks_source_integration_tests.sales_receipt_line_data"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["seed.quickbooks_source_integration_tests.invoice_data"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": ["model.quickbooks_source.stg_quickbooks__account"], "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": ["model.quickbooks_source.stg_quickbooks__address"], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": ["model.quickbooks_source.stg_quickbooks__bill_line"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": ["model.quickbooks_source.stg_quickbooks__bill_payment_line"], "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": ["model.quickbooks_source.stg_quickbooks__bill_payment"], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": ["model.quickbooks_source.stg_quickbooks__bill"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": ["model.quickbooks_source.stg_quickbooks__bundle_item"], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": ["model.quickbooks_source.stg_quickbooks__bundle"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": ["model.quickbooks_source.stg_quickbooks__credit_memo_line"], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": ["model.quickbooks_source.stg_quickbooks__credit_memo"], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": ["model.quickbooks_source.stg_quickbooks__customer"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": ["model.quickbooks_source.stg_quickbooks__deposit_line"], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": ["model.quickbooks_source.stg_quickbooks__deposit"], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": ["model.quickbooks_source.stg_quickbooks__estimate"], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": ["model.quickbooks_source.stg_quickbooks__estimate_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": ["model.quickbooks_source.stg_quickbooks__invoice_line"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": ["model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": ["model.quickbooks_source.stg_quickbooks__item"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": ["model.quickbooks_source.stg_quickbooks__journal_entry_line"], "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": ["model.quickbooks_source.stg_quickbooks__journal_entry"], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": ["model.quickbooks_source.stg_quickbooks__payment_line"], "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": ["model.quickbooks_source.stg_quickbooks__payment"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": ["model.quickbooks_source.stg_quickbooks__purchase_line"], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": ["model.quickbooks_source.stg_quickbooks__purchase"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": ["model.quickbooks_source.stg_quickbooks__purchase_order_line"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": ["model.quickbooks_source.stg_quickbooks__purchase_order"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": ["model.quickbooks_source.stg_quickbooks__refund_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": ["model.quickbooks_source.stg_quickbooks__sales_receipt"], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": ["model.quickbooks_source.stg_quickbooks__transfer"], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": ["model.quickbooks_source.stg_quickbooks__vendor_credit"], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": ["model.quickbooks_source.stg_quickbooks__vendor"], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": ["model.quickbooks_source.stg_quickbooks__vendor"], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}, "child_map": {"seed.quickbooks_source_integration_tests.bill_payment_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_tmp"], "seed.quickbooks_source_integration_tests.bundle_data": ["model.quickbooks_source.stg_quickbooks__bundle_tmp"], "seed.quickbooks_source_integration_tests.bill_payment_line_data": ["model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"], "seed.quickbooks_source_integration_tests.payment_line_data": ["model.quickbooks_source.stg_quickbooks__payment_line_tmp"], "seed.quickbooks_source_integration_tests.vendor_data": ["model.quickbooks_source.stg_quickbooks__vendor_tmp"], "seed.quickbooks_source_integration_tests.address_data": ["model.quickbooks_source.stg_quickbooks__address_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.invoice_line_bundle_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"], "seed.quickbooks_source_integration_tests.invoice_data": ["model.quickbooks_source.stg_quickbooks__invoice_tmp"], "seed.quickbooks_source_integration_tests.payment_data": ["model.quickbooks_source.stg_quickbooks__payment_tmp"], "seed.quickbooks_source_integration_tests.invoice_line_data": ["model.quickbooks_source.stg_quickbooks__invoice_line_tmp"], "seed.quickbooks_source_integration_tests.deposit_line_data": ["model.quickbooks_source.stg_quickbooks__deposit_line_tmp"], "seed.quickbooks_source_integration_tests.estimate_line_data": ["model.quickbooks_source.stg_quickbooks__estimate_line_tmp"], "seed.quickbooks_source_integration_tests.purchase_data": ["model.quickbooks_source.stg_quickbooks__purchase_tmp"], "seed.quickbooks_source_integration_tests.refund_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"], "seed.quickbooks_source_integration_tests.credit_memo_line_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"], "seed.quickbooks_source_integration_tests.bill_data": ["model.quickbooks_source.stg_quickbooks__bill_tmp"], "seed.quickbooks_source_integration_tests.bill_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.vendor_credit_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"], "seed.quickbooks_source_integration_tests.customer_data": ["model.quickbooks_source.stg_quickbooks__customer_tmp"], "seed.quickbooks_source_integration_tests.estimate_data": ["model.quickbooks_source.stg_quickbooks__estimate_tmp"], "seed.quickbooks_source_integration_tests.purchase_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_line_tmp"], "seed.quickbooks_source_integration_tests.journal_entry_line_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"], "seed.quickbooks_source_integration_tests.journal_entry_data": ["model.quickbooks_source.stg_quickbooks__journal_entry_tmp"], "seed.quickbooks_source_integration_tests.bill_line_data": ["model.quickbooks_source.stg_quickbooks__bill_line_tmp"], "seed.quickbooks_source_integration_tests.bundle_item_data": ["model.quickbooks_source.stg_quickbooks__bundle_item_tmp"], "seed.quickbooks_source_integration_tests.invoice_linked_txn_data": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"], "seed.quickbooks_source_integration_tests.account_data": ["model.quickbooks_source.stg_quickbooks__account_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_line_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"], "seed.quickbooks_source_integration_tests.transfer_data": ["model.quickbooks_source.stg_quickbooks__transfer_tmp"], "seed.quickbooks_source_integration_tests.purchase_order_data": ["model.quickbooks_source.stg_quickbooks__purchase_order_tmp"], "seed.quickbooks_source_integration_tests.sales_receipt_line_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"], "seed.quickbooks_source_integration_tests.vendor_credit_line_data": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"], "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data": ["model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"], "seed.quickbooks_source_integration_tests.credit_memo_data": ["model.quickbooks_source.stg_quickbooks__credit_memo_tmp"], "seed.quickbooks_source_integration_tests.department_data": ["model.quickbooks_source.stg_quickbooks__department_tmp"], "seed.quickbooks_source_integration_tests.item_data": ["model.quickbooks_source.stg_quickbooks__item_tmp"], "seed.quickbooks_source_integration_tests.sales_receipt_data": ["model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"], "seed.quickbooks_source_integration_tests.deposit_data": ["model.quickbooks_source.stg_quickbooks__deposit_tmp"], "seed.quickbooks_source_integration_tests.refund_receipt_data": ["model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"], "model.quickbooks_source.stg_quickbooks__journal_entry_line": ["test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3", "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"], "model.quickbooks_source.stg_quickbooks__transfer": ["test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c", "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac"], "model.quickbooks_source.stg_quickbooks__bill_payment_line": ["test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"], "model.quickbooks_source.stg_quickbooks__payment_line": ["test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"], "model.quickbooks_source.stg_quickbooks__vendor": ["test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195", "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad"], "model.quickbooks_source.stg_quickbooks__invoice_line": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"], "model.quickbooks_source.stg_quickbooks__estimate": ["test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310", "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e"], "model.quickbooks_source.stg_quickbooks__credit_memo_line": ["test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"], "model.quickbooks_source.stg_quickbooks__bundle": ["test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60", "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444"], "model.quickbooks_source.stg_quickbooks__department": [], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn": [], "model.quickbooks_source.stg_quickbooks__purchase_line": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"], "model.quickbooks_source.stg_quickbooks__purchase": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458", "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b", "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line": ["test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"], "model.quickbooks_source.stg_quickbooks__bundle_item": ["test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"], "model.quickbooks_source.stg_quickbooks__credit_memo": ["test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152", "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3"], "model.quickbooks_source.stg_quickbooks__purchase_order": ["test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065", "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222", "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line": ["test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"], "model.quickbooks_source.stg_quickbooks__sales_receipt": ["test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a", "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95"], "model.quickbooks_source.stg_quickbooks__purchase_order_line": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"], "model.quickbooks_source.stg_quickbooks__invoice": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d", "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04"], "model.quickbooks_source.stg_quickbooks__bill_payment": ["test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb", "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle": ["test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"], "model.quickbooks_source.stg_quickbooks__account": ["test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f", "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d", "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31"], "model.quickbooks_source.stg_quickbooks__payment": ["test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f", "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b"], "model.quickbooks_source.stg_quickbooks__estimate_line": ["test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd", "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"], "model.quickbooks_source.stg_quickbooks__address": ["test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c", "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f"], "model.quickbooks_source.stg_quickbooks__bill": ["test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8", "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00"], "model.quickbooks_source.stg_quickbooks__bill_line": ["test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"], "model.quickbooks_source.stg_quickbooks__journal_entry": ["test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2", "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d"], "model.quickbooks_source.stg_quickbooks__refund_receipt": ["test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e", "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923"], "model.quickbooks_source.stg_quickbooks__deposit_line": ["test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"], "model.quickbooks_source.stg_quickbooks__vendor_credit": ["test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a", "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line": [], "model.quickbooks_source.stg_quickbooks__deposit": ["test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1", "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5"], "model.quickbooks_source.stg_quickbooks__item": ["test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9", "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn": ["test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e"], "model.quickbooks_source.stg_quickbooks__customer": ["test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723", "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3"], "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit", "model.quickbooks_source.stg_quickbooks__vendor_credit"], "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt_line", "model.quickbooks_source.stg_quickbooks__refund_receipt_line"], "model.quickbooks_source.stg_quickbooks__estimate_line_tmp": ["model.quickbooks_source.stg_quickbooks__estimate_line", "model.quickbooks_source.stg_quickbooks__estimate_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order_line", "model.quickbooks_source.stg_quickbooks__purchase_order_line"], "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo_line", "model.quickbooks_source.stg_quickbooks__credit_memo_line"], "model.quickbooks_source.stg_quickbooks__journal_entry_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry", "model.quickbooks_source.stg_quickbooks__journal_entry"], "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line_bundle", "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"], "model.quickbooks_source.stg_quickbooks__payment_tmp": ["model.quickbooks_source.stg_quickbooks__payment", "model.quickbooks_source.stg_quickbooks__payment"], "model.quickbooks_source.stg_quickbooks__invoice_line_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_line", "model.quickbooks_source.stg_quickbooks__invoice_line"], "model.quickbooks_source.stg_quickbooks__deposit_line_tmp": ["model.quickbooks_source.stg_quickbooks__deposit_line", "model.quickbooks_source.stg_quickbooks__deposit_line"], "model.quickbooks_source.stg_quickbooks__customer_tmp": ["model.quickbooks_source.stg_quickbooks__customer", "model.quickbooks_source.stg_quickbooks__customer"], "model.quickbooks_source.stg_quickbooks__bill_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_line", "model.quickbooks_source.stg_quickbooks__bill_line"], "model.quickbooks_source.stg_quickbooks__item_tmp": ["model.quickbooks_source.stg_quickbooks__item", "model.quickbooks_source.stg_quickbooks__item"], "model.quickbooks_source.stg_quickbooks__account_tmp": ["model.quickbooks_source.stg_quickbooks__account", "model.quickbooks_source.stg_quickbooks__account"], "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp": ["model.quickbooks_source.stg_quickbooks__credit_card_payment_txn", "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn"], "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp": ["model.quickbooks_source.stg_quickbooks__vendor_credit_line", "model.quickbooks_source.stg_quickbooks__vendor_credit_line"], "model.quickbooks_source.stg_quickbooks__department_tmp": ["model.quickbooks_source.stg_quickbooks__department", "model.quickbooks_source.stg_quickbooks__department"], "model.quickbooks_source.stg_quickbooks__bundle_tmp": ["model.quickbooks_source.stg_quickbooks__bundle", "model.quickbooks_source.stg_quickbooks__bundle"], "model.quickbooks_source.stg_quickbooks__bundle_item_tmp": ["model.quickbooks_source.stg_quickbooks__bundle_item", "model.quickbooks_source.stg_quickbooks__bundle_item"], "model.quickbooks_source.stg_quickbooks__purchase_order_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order", "model.quickbooks_source.stg_quickbooks__purchase_order"], "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment_line", "model.quickbooks_source.stg_quickbooks__bill_payment_line"], "model.quickbooks_source.stg_quickbooks__estimate_tmp": ["model.quickbooks_source.stg_quickbooks__estimate", "model.quickbooks_source.stg_quickbooks__estimate"], "model.quickbooks_source.stg_quickbooks__purchase_tmp": ["model.quickbooks_source.stg_quickbooks__purchase", "model.quickbooks_source.stg_quickbooks__purchase"], "model.quickbooks_source.stg_quickbooks__credit_memo_tmp": ["model.quickbooks_source.stg_quickbooks__credit_memo", "model.quickbooks_source.stg_quickbooks__credit_memo"], "model.quickbooks_source.stg_quickbooks__bill_tmp": ["model.quickbooks_source.stg_quickbooks__bill", "model.quickbooks_source.stg_quickbooks__bill"], "model.quickbooks_source.stg_quickbooks__transfer_tmp": ["model.quickbooks_source.stg_quickbooks__transfer", "model.quickbooks_source.stg_quickbooks__transfer"], "model.quickbooks_source.stg_quickbooks__vendor_tmp": ["model.quickbooks_source.stg_quickbooks__vendor", "model.quickbooks_source.stg_quickbooks__vendor"], "model.quickbooks_source.stg_quickbooks__purchase_line_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_line", "model.quickbooks_source.stg_quickbooks__purchase_line"], "model.quickbooks_source.stg_quickbooks__address_tmp": ["model.quickbooks_source.stg_quickbooks__address", "model.quickbooks_source.stg_quickbooks__address"], "model.quickbooks_source.stg_quickbooks__payment_line_tmp": ["model.quickbooks_source.stg_quickbooks__payment_line", "model.quickbooks_source.stg_quickbooks__payment_line"], "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__refund_receipt", "model.quickbooks_source.stg_quickbooks__refund_receipt"], "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt", "model.quickbooks_source.stg_quickbooks__sales_receipt"], "model.quickbooks_source.stg_quickbooks__bill_payment_tmp": ["model.quickbooks_source.stg_quickbooks__bill_payment", "model.quickbooks_source.stg_quickbooks__bill_payment"], "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp": ["model.quickbooks_source.stg_quickbooks__journal_entry_line", "model.quickbooks_source.stg_quickbooks__journal_entry_line"], "model.quickbooks_source.stg_quickbooks__deposit_tmp": ["model.quickbooks_source.stg_quickbooks__deposit", "model.quickbooks_source.stg_quickbooks__deposit"], "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__bill_linked_txn", "model.quickbooks_source.stg_quickbooks__bill_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__invoice_linked_txn", "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"], "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp": ["model.quickbooks_source.stg_quickbooks__sales_receipt_line", "model.quickbooks_source.stg_quickbooks__sales_receipt_line"], "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp": ["model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn", "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"], "model.quickbooks_source.stg_quickbooks__invoice_tmp": ["model.quickbooks_source.stg_quickbooks__invoice", "model.quickbooks_source.stg_quickbooks__invoice"], "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31": [], "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d": [], "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f": [], "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f": [], "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150": [], "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb": [], "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00": [], "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07": [], "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444": [], "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b": [], "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3": [], "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152": [], "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3": [], "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1": [], "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5": [], "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1": [], "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310": [], "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9": [], "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04": [], "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d": [], "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26": [], "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784": [], "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3": [], "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d": [], "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26": [], "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b": [], "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e": [], "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613": [], "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222": [], "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80": [], "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923": [], "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3": [], "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95": [], "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a": [], "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac": [], "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a": [], "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad": [], "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195": [], "source.quickbooks_source.quickbooks.account": [], "source.quickbooks_source.quickbooks.address": [], "source.quickbooks_source.quickbooks.bill_line": [], "source.quickbooks_source.quickbooks.bill_linked_txn": [], "source.quickbooks_source.quickbooks.bill_payment_line": [], "source.quickbooks_source.quickbooks.bill_payment": [], "source.quickbooks_source.quickbooks.bill": [], "source.quickbooks_source.quickbooks.bundle_item": [], "source.quickbooks_source.quickbooks.bundle": [], "source.quickbooks_source.quickbooks.credit_card_payment_txn": [], "source.quickbooks_source.quickbooks.credit_memo_line": [], "source.quickbooks_source.quickbooks.credit_memo": [], "source.quickbooks_source.quickbooks.customer": [], "source.quickbooks_source.quickbooks.department": [], "source.quickbooks_source.quickbooks.deposit_line": [], "source.quickbooks_source.quickbooks.deposit": [], "source.quickbooks_source.quickbooks.estimate": [], "source.quickbooks_source.quickbooks.estimate_line": [], "source.quickbooks_source.quickbooks.invoice_linked_txn": [], "source.quickbooks_source.quickbooks.invoice_line": [], "source.quickbooks_source.quickbooks.invoice_line_bundle": [], "source.quickbooks_source.quickbooks.invoice": [], "source.quickbooks_source.quickbooks.item": [], "source.quickbooks_source.quickbooks.journal_entry_line": [], "source.quickbooks_source.quickbooks.journal_entry": [], "source.quickbooks_source.quickbooks.payment_line": [], "source.quickbooks_source.quickbooks.payment": [], "source.quickbooks_source.quickbooks.purchase_line": [], "source.quickbooks_source.quickbooks.purchase": [], "source.quickbooks_source.quickbooks.purchase_order_line": [], "source.quickbooks_source.quickbooks.purchase_order_linked_txn": [], "source.quickbooks_source.quickbooks.purchase_order": [], "source.quickbooks_source.quickbooks.refund_receipt_line": [], "source.quickbooks_source.quickbooks.refund_receipt": [], "source.quickbooks_source.quickbooks.sales_receipt_line": [], "source.quickbooks_source.quickbooks.sales_receipt": [], "source.quickbooks_source.quickbooks.transfer": [], "source.quickbooks_source.quickbooks.vendor_credit_line": [], "source.quickbooks_source.quickbooks.vendor_credit": [], "source.quickbooks_source.quickbooks.vendor": []}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 87936bc..0d26b5d 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v1.json", "dbt_version": "0.19.0", "generated_at": "2021-03-11T16:18:25.509608Z", "invocation_id": "fd1112b1-d87b-4c9c-b6d0-769ca5bc7bf3", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.844880Z", "completed_at": "2021-03-11T16:18:21.878948Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.880015Z", "completed_at": "2021-03-11T16:18:21.880044Z"}], "thread_id": "Thread-1", "execution_time": 0.05193305015563965, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.851044Z", "completed_at": "2021-03-11T16:18:21.879348Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.880634Z", "completed_at": "2021-03-11T16:18:21.880646Z"}], "thread_id": "Thread-2", "execution_time": 0.046205997467041016, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.879627Z", "completed_at": "2021-03-11T16:18:21.897217Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.898946Z", "completed_at": "2021-03-11T16:18:21.898955Z"}], "thread_id": "Thread-3", "execution_time": 0.021996021270751953, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.879819Z", "completed_at": "2021-03-11T16:18:21.897541Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.899238Z", "completed_at": "2021-03-11T16:18:21.899247Z"}], "thread_id": "Thread-4", "execution_time": 0.022038698196411133, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.900869Z", "completed_at": "2021-03-11T16:18:21.916782Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.917572Z", "completed_at": "2021-03-11T16:18:21.917581Z"}], "thread_id": "Thread-1", "execution_time": 0.03226494789123535, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.900998Z", "completed_at": "2021-03-11T16:18:21.917054Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.917818Z", "completed_at": "2021-03-11T16:18:21.917825Z"}], "thread_id": "Thread-2", "execution_time": 0.032256126403808594, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.917311Z", "completed_at": "2021-03-11T16:18:21.932231Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.933557Z", "completed_at": "2021-03-11T16:18:21.933566Z"}], "thread_id": "Thread-3", "execution_time": 0.018638134002685547, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.917442Z", "completed_at": "2021-03-11T16:18:21.932500Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.933834Z", "completed_at": "2021-03-11T16:18:21.933841Z"}], "thread_id": "Thread-4", "execution_time": 0.018558025360107422, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.935170Z", "completed_at": "2021-03-11T16:18:21.950566Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.951374Z", "completed_at": "2021-03-11T16:18:21.951382Z"}], "thread_id": "Thread-1", "execution_time": 0.030950069427490234, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.935302Z", "completed_at": "2021-03-11T16:18:21.950828Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.951646Z", "completed_at": "2021-03-11T16:18:21.951655Z"}], "thread_id": "Thread-2", "execution_time": 0.03097701072692871, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.951113Z", "completed_at": "2021-03-11T16:18:21.965460Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.966751Z", "completed_at": "2021-03-11T16:18:21.966759Z"}], "thread_id": "Thread-3", "execution_time": 0.01795196533203125, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.951250Z", "completed_at": "2021-03-11T16:18:21.965714Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.967020Z", "completed_at": "2021-03-11T16:18:21.967027Z"}], "thread_id": "Thread-4", "execution_time": 0.017898082733154297, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.968334Z", "completed_at": "2021-03-11T16:18:21.984013Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.984734Z", "completed_at": "2021-03-11T16:18:21.984742Z"}], "thread_id": "Thread-1", "execution_time": 0.03077411651611328, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.968451Z", "completed_at": "2021-03-11T16:18:21.984250Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.984979Z", "completed_at": "2021-03-11T16:18:21.984986Z"}], "thread_id": "Thread-2", "execution_time": 0.030904769897460938, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.984481Z", "completed_at": "2021-03-11T16:18:21.998554Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:21.999836Z", "completed_at": "2021-03-11T16:18:21.999842Z"}], "thread_id": "Thread-3", "execution_time": 0.017490863800048828, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:21.984600Z", "completed_at": "2021-03-11T16:18:21.998762Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.000055Z", "completed_at": "2021-03-11T16:18:22.000060Z"}], "thread_id": "Thread-4", "execution_time": 0.017431974411010742, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.001319Z", "completed_at": "2021-03-11T16:18:22.014882Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.015721Z", "completed_at": "2021-03-11T16:18:22.015728Z"}], "thread_id": "Thread-1", "execution_time": 0.030315160751342773, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.001432Z", "completed_at": "2021-03-11T16:18:22.015207Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.015957Z", "completed_at": "2021-03-11T16:18:22.015964Z"}], "thread_id": "Thread-2", "execution_time": 0.030612945556640625, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.015448Z", "completed_at": "2021-03-11T16:18:22.031455Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.032948Z", "completed_at": "2021-03-11T16:18:22.032955Z"}], "thread_id": "Thread-3", "execution_time": 0.02020406723022461, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.015570Z", "completed_at": "2021-03-11T16:18:22.031903Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.033396Z", "completed_at": "2021-03-11T16:18:22.033403Z"}], "thread_id": "Thread-4", "execution_time": 0.02004218101501465, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.034765Z", "completed_at": "2021-03-11T16:18:22.049572Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.050353Z", "completed_at": "2021-03-11T16:18:22.050362Z"}], "thread_id": "Thread-1", "execution_time": 0.030562877655029297, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.034897Z", "completed_at": "2021-03-11T16:18:22.049848Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.050605Z", "completed_at": "2021-03-11T16:18:22.050612Z"}], "thread_id": "Thread-2", "execution_time": 0.030573129653930664, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.050107Z", "completed_at": "2021-03-11T16:18:22.064662Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.065848Z", "completed_at": "2021-03-11T16:18:22.065856Z"}], "thread_id": "Thread-3", "execution_time": 0.018300294876098633, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.050226Z", "completed_at": "2021-03-11T16:18:22.064914Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.066242Z", "completed_at": "2021-03-11T16:18:22.066249Z"}], "thread_id": "Thread-4", "execution_time": 0.018247127532958984, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.067673Z", "completed_at": "2021-03-11T16:18:22.082345Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.083164Z", "completed_at": "2021-03-11T16:18:22.083173Z"}], "thread_id": "Thread-1", "execution_time": 0.031580209732055664, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.067801Z", "completed_at": "2021-03-11T16:18:22.082603Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.083425Z", "completed_at": "2021-03-11T16:18:22.083432Z"}], "thread_id": "Thread-2", "execution_time": 0.03161501884460449, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.082856Z", "completed_at": "2021-03-11T16:18:22.098582Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.099809Z", "completed_at": "2021-03-11T16:18:22.099816Z"}], "thread_id": "Thread-3", "execution_time": 0.019346237182617188, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.083009Z", "completed_at": "2021-03-11T16:18:22.098853Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.100131Z", "completed_at": "2021-03-11T16:18:22.100138Z"}], "thread_id": "Thread-4", "execution_time": 0.01926898956298828, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.101481Z", "completed_at": "2021-03-11T16:18:22.116134Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.116923Z", "completed_at": "2021-03-11T16:18:22.116932Z"}], "thread_id": "Thread-1", "execution_time": 0.030163049697875977, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.101601Z", "completed_at": "2021-03-11T16:18:22.116401Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.117182Z", "completed_at": "2021-03-11T16:18:22.117189Z"}], "thread_id": "Thread-2", "execution_time": 0.030169963836669922, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.116665Z", "completed_at": "2021-03-11T16:18:22.130973Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.132169Z", "completed_at": "2021-03-11T16:18:22.132176Z"}], "thread_id": "Thread-3", "execution_time": 0.017911195755004883, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.116793Z", "completed_at": "2021-03-11T16:18:22.131229Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.132434Z", "completed_at": "2021-03-11T16:18:22.132441Z"}], "thread_id": "Thread-4", "execution_time": 0.01787281036376953, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.133883Z", "completed_at": "2021-03-11T16:18:22.148804Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.149533Z", "completed_at": "2021-03-11T16:18:22.149543Z"}], "thread_id": "Thread-1", "execution_time": 0.030591964721679688, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.134016Z", "completed_at": "2021-03-11T16:18:22.149056Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.149802Z", "completed_at": "2021-03-11T16:18:22.149810Z"}], "thread_id": "Thread-2", "execution_time": 0.03209209442138672, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.149283Z", "completed_at": "2021-03-11T16:18:22.165260Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.166450Z", "completed_at": "2021-03-11T16:18:22.166458Z"}], "thread_id": "Thread-3", "execution_time": 0.019562959671020508, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.149396Z", "completed_at": "2021-03-11T16:18:22.165853Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.167037Z", "completed_at": "2021-03-11T16:18:22.167044Z"}], "thread_id": "Thread-4", "execution_time": 0.019641876220703125, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.167834Z", "completed_at": "2021-03-11T16:18:22.182604Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.183517Z", "completed_at": "2021-03-11T16:18:22.183525Z"}], "thread_id": "Thread-1", "execution_time": 0.023873090744018555, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.168224Z", "completed_at": "2021-03-11T16:18:22.183142Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.183905Z", "completed_at": "2021-03-11T16:18:22.183913Z"}], "thread_id": "Thread-2", "execution_time": 0.029057741165161133, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.183385Z", "completed_at": "2021-03-11T16:18:22.207265Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.208445Z", "completed_at": "2021-03-11T16:18:22.208455Z"}], "thread_id": "Thread-3", "execution_time": 0.02722001075744629, "message": null, "adapter_response": {}, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.183754Z", "completed_at": "2021-03-11T16:18:22.208736Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.209691Z", "completed_at": "2021-03-11T16:18:22.209698Z"}], "thread_id": "Thread-4", "execution_time": 0.0364990234375, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.209249Z", "completed_at": "2021-03-11T16:18:22.231372Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.232250Z", "completed_at": "2021-03-11T16:18:22.232260Z"}], "thread_id": "Thread-1", "execution_time": 0.03490877151489258, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.209940Z", "completed_at": "2021-03-11T16:18:22.232013Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.242426Z", "completed_at": "2021-03-11T16:18:22.242437Z"}], "thread_id": "Thread-2", "execution_time": 0.04419684410095215, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.231632Z", "completed_at": "2021-03-11T16:18:22.254080Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.255303Z", "completed_at": "2021-03-11T16:18:22.255311Z"}], "thread_id": "Thread-3", "execution_time": 0.02573990821838379, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.237799Z", "completed_at": "2021-03-11T16:18:22.255074Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.255805Z", "completed_at": "2021-03-11T16:18:22.255812Z"}], "thread_id": "Thread-4", "execution_time": 0.043853044509887695, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.255553Z", "completed_at": "2021-03-11T16:18:22.276480Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.277633Z", "completed_at": "2021-03-11T16:18:22.277641Z"}], "thread_id": "Thread-1", "execution_time": 0.024218082427978516, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.255678Z", "completed_at": "2021-03-11T16:18:22.277063Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.278149Z", "completed_at": "2021-03-11T16:18:22.278156Z"}], "thread_id": "Thread-2", "execution_time": 0.02422308921813965, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.278383Z", "completed_at": "2021-03-11T16:18:22.299790Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.300590Z", "completed_at": "2021-03-11T16:18:22.300600Z"}], "thread_id": "Thread-3", "execution_time": 0.04358792304992676, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.278803Z", "completed_at": "2021-03-11T16:18:22.300346Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.316368Z", "completed_at": "2021-03-11T16:18:22.316391Z"}], "thread_id": "Thread-4", "execution_time": 0.043450117111206055, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.300084Z", "completed_at": "2021-03-11T16:18:22.322605Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.323459Z", "completed_at": "2021-03-11T16:18:22.323467Z"}], "thread_id": "Thread-1", "execution_time": 0.030534982681274414, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.300226Z", "completed_at": "2021-03-11T16:18:22.322821Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.323698Z", "completed_at": "2021-03-11T16:18:22.323704Z"}], "thread_id": "Thread-2", "execution_time": 0.033882856369018555, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.323326Z", "completed_at": "2021-03-11T16:18:22.344450Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.345343Z", "completed_at": "2021-03-11T16:18:22.345352Z"}], "thread_id": "Thread-3", "execution_time": 0.03309917449951172, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.323934Z", "completed_at": "2021-03-11T16:18:22.344724Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.345604Z", "completed_at": "2021-03-11T16:18:22.345611Z"}], "thread_id": "Thread-4", "execution_time": 0.03269004821777344, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.345198Z", "completed_at": "2021-03-11T16:18:22.365879Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.366926Z", "completed_at": "2021-03-11T16:18:22.366936Z"}], "thread_id": "Thread-1", "execution_time": 0.023665904998779297, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.345836Z", "completed_at": "2021-03-11T16:18:22.367180Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.367977Z", "completed_at": "2021-03-11T16:18:22.367985Z"}], "thread_id": "Thread-2", "execution_time": 0.08876538276672363, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.367411Z", "completed_at": "2021-03-11T16:18:22.435360Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.436405Z", "completed_at": "2021-03-11T16:18:22.436416Z"}], "thread_id": "Thread-3", "execution_time": 0.08305621147155762, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.435669Z", "completed_at": "2021-03-11T16:18:22.470704Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.471302Z", "completed_at": "2021-03-11T16:18:22.471314Z"}], "thread_id": "Thread-1", "execution_time": 0.05075812339782715, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.442099Z", "completed_at": "2021-03-11T16:18:22.471609Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.485232Z", "completed_at": "2021-03-11T16:18:22.485244Z"}], "thread_id": "Thread-2", "execution_time": 0.050772905349731445, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.367552Z", "completed_at": "2021-03-11T16:18:22.476887Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.485600Z", "completed_at": "2021-03-11T16:18:22.485609Z"}], "thread_id": "Thread-4", "execution_time": 0.1207270622253418, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.471079Z", "completed_at": "2021-03-11T16:18:22.487495Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.488924Z", "completed_at": "2021-03-11T16:18:22.488935Z"}], "thread_id": "Thread-3", "execution_time": 0.02005290985107422, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.489264Z", "completed_at": "2021-03-11T16:18:22.522266Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.523339Z", "completed_at": "2021-03-11T16:18:22.523350Z"}], "thread_id": "Thread-1", "execution_time": 0.04738903045654297, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.501945Z", "completed_at": "2021-03-11T16:18:22.522857Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.528726Z", "completed_at": "2021-03-11T16:18:22.528735Z"}], "thread_id": "Thread-2", "execution_time": 0.046076297760009766, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.502307Z", "completed_at": "2021-03-11T16:18:22.523100Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.534695Z", "completed_at": "2021-03-11T16:18:22.534706Z"}], "thread_id": "Thread-4", "execution_time": 0.046204328536987305, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.522676Z", "completed_at": "2021-03-11T16:18:22.536421Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.538051Z", "completed_at": "2021-03-11T16:18:22.538061Z"}], "thread_id": "Thread-3", "execution_time": 0.017681121826171875, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.539716Z", "completed_at": "2021-03-11T16:18:22.571334Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.572206Z", "completed_at": "2021-03-11T16:18:22.572216Z"}], "thread_id": "Thread-2", "execution_time": 0.04369997978210449, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.539193Z", "completed_at": "2021-03-11T16:18:22.571637Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.572457Z", "completed_at": "2021-03-11T16:18:22.572464Z"}], "thread_id": "Thread-1", "execution_time": 0.04473066329956055, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.539872Z", "completed_at": "2021-03-11T16:18:22.571941Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.581556Z", "completed_at": "2021-03-11T16:18:22.581569Z"}], "thread_id": "Thread-4", "execution_time": 0.044088125228881836, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.571863Z", "completed_at": "2021-03-11T16:18:22.583911Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.585046Z", "completed_at": "2021-03-11T16:18:22.585053Z"}], "thread_id": "Thread-3", "execution_time": 0.015450000762939453, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.585658Z", "completed_at": "2021-03-11T16:18:22.622327Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.628268Z", "completed_at": "2021-03-11T16:18:22.628284Z"}], "thread_id": "Thread-1", "execution_time": 0.05230522155761719, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.585482Z", "completed_at": "2021-03-11T16:18:22.622749Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.635883Z", "completed_at": "2021-03-11T16:18:22.635906Z"}], "thread_id": "Thread-2", "execution_time": 0.05397486686706543, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.585803Z", "completed_at": "2021-03-11T16:18:22.635314Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.637342Z", "completed_at": "2021-03-11T16:18:22.637359Z"}], "thread_id": "Thread-4", "execution_time": 0.05520200729370117, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.622205Z", "completed_at": "2021-03-11T16:18:22.638914Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.642233Z", "completed_at": "2021-03-11T16:18:22.642257Z"}], "thread_id": "Thread-3", "execution_time": 0.024110078811645508, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.644987Z", "completed_at": "2021-03-11T16:18:22.686821Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.704531Z", "completed_at": "2021-03-11T16:18:22.704543Z"}], "thread_id": "Thread-1", "execution_time": 0.06496691703796387, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.646691Z", "completed_at": "2021-03-11T16:18:22.692449Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.705062Z", "completed_at": "2021-03-11T16:18:22.705070Z"}], "thread_id": "Thread-2", "execution_time": 0.06265902519226074, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.661002Z", "completed_at": "2021-03-11T16:18:22.705330Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.706780Z", "completed_at": "2021-03-11T16:18:22.706790Z"}], "thread_id": "Thread-4", "execution_time": 0.06221199035644531, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.686447Z", "completed_at": "2021-03-11T16:18:22.707037Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.708492Z", "completed_at": "2021-03-11T16:18:22.708500Z"}], "thread_id": "Thread-3", "execution_time": 0.035977840423583984, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.710067Z", "completed_at": "2021-03-11T16:18:22.743259Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.747039Z", "completed_at": "2021-03-11T16:18:22.747063Z"}], "thread_id": "Thread-1", "execution_time": 0.04961705207824707, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.710200Z", "completed_at": "2021-03-11T16:18:22.747514Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.768761Z", "completed_at": "2021-03-11T16:18:22.768775Z"}], "thread_id": "Thread-2", "execution_time": 0.06099104881286621, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.731786Z", "completed_at": "2021-03-11T16:18:22.769046Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.770310Z", "completed_at": "2021-03-11T16:18:22.770319Z"}], "thread_id": "Thread-4", "execution_time": 0.0621790885925293, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.773023Z", "completed_at": "2021-03-11T16:18:22.978902Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:22.979221Z", "completed_at": "2021-03-11T16:18:22.979232Z"}], "thread_id": "Thread-1", "execution_time": 0.20908808708190918, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.805897Z", "completed_at": "2021-03-11T16:18:22.996641Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.005572Z", "completed_at": "2021-03-11T16:18:23.005584Z"}], "thread_id": "Thread-4", "execution_time": 0.21883893013000488, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.788157Z", "completed_at": "2021-03-11T16:18:22.996907Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.005863Z", "completed_at": "2021-03-11T16:18:23.005869Z"}], "thread_id": "Thread-2", "execution_time": 0.23436379432678223, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.746620Z", "completed_at": "2021-03-11T16:18:23.008128Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.009178Z", "completed_at": "2021-03-11T16:18:23.009185Z"}], "thread_id": "Thread-3", "execution_time": 0.27829790115356445, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:22.980312Z", "completed_at": "2021-03-11T16:18:23.158889Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.159171Z", "completed_at": "2021-03-11T16:18:23.159183Z"}], "thread_id": "Thread-1", "execution_time": 0.1795661449432373, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.010519Z", "completed_at": "2021-03-11T16:18:23.191457Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.191765Z", "completed_at": "2021-03-11T16:18:23.191776Z"}], "thread_id": "Thread-2", "execution_time": 0.1823561191558838, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.010395Z", "completed_at": "2021-03-11T16:18:23.210504Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.211032Z", "completed_at": "2021-03-11T16:18:23.211043Z"}], "thread_id": "Thread-4", "execution_time": 0.20671296119689941, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.046048Z", "completed_at": "2021-03-11T16:18:23.232894Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.233139Z", "completed_at": "2021-03-11T16:18:23.233147Z"}], "thread_id": "Thread-3", "execution_time": 0.1885366439819336, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.160423Z", "completed_at": "2021-03-11T16:18:23.320644Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.320937Z", "completed_at": "2021-03-11T16:18:23.320949Z"}], "thread_id": "Thread-1", "execution_time": 0.16123509407043457, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.216949Z", "completed_at": "2021-03-11T16:18:23.366120Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.366389Z", "completed_at": "2021-03-11T16:18:23.366399Z"}], "thread_id": "Thread-4", "execution_time": 0.1500551700592041, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.192758Z", "completed_at": "2021-03-11T16:18:23.374428Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.374724Z", "completed_at": "2021-03-11T16:18:23.374732Z"}], "thread_id": "Thread-2", "execution_time": 0.1826009750366211, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.234169Z", "completed_at": "2021-03-11T16:18:23.412126Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.412679Z", "completed_at": "2021-03-11T16:18:23.412688Z"}], "thread_id": "Thread-3", "execution_time": 0.17948484420776367, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.322178Z", "completed_at": "2021-03-11T16:18:23.517611Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.517949Z", "completed_at": "2021-03-11T16:18:23.517962Z"}], "thread_id": "Thread-1", "execution_time": 0.1965627670288086, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.367413Z", "completed_at": "2021-03-11T16:18:23.562904Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.563202Z", "completed_at": "2021-03-11T16:18:23.563212Z"}], "thread_id": "Thread-4", "execution_time": 0.19654607772827148, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.375631Z", "completed_at": "2021-03-11T16:18:23.564114Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.564865Z", "completed_at": "2021-03-11T16:18:23.564873Z"}], "thread_id": "Thread-2", "execution_time": 0.1963939666748047, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.414078Z", "completed_at": "2021-03-11T16:18:23.613108Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.613963Z", "completed_at": "2021-03-11T16:18:23.613972Z"}], "thread_id": "Thread-3", "execution_time": 0.2007458209991455, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.519099Z", "completed_at": "2021-03-11T16:18:23.767147Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.780789Z", "completed_at": "2021-03-11T16:18:23.780801Z"}], "thread_id": "Thread-1", "execution_time": 0.26325297355651855, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.581638Z", "completed_at": "2021-03-11T16:18:23.781379Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.782240Z", "completed_at": "2021-03-11T16:18:23.782249Z"}], "thread_id": "Thread-2", "execution_time": 0.21126604080200195, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.615244Z", "completed_at": "2021-03-11T16:18:23.781593Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.782584Z", "completed_at": "2021-03-11T16:18:23.782592Z"}], "thread_id": "Thread-3", "execution_time": 0.1688549518585205, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.564650Z", "completed_at": "2021-03-11T16:18:23.782810Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:23.784030Z", "completed_at": "2021-03-11T16:18:23.784037Z"}], "thread_id": "Thread-4", "execution_time": 0.22133231163024902, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.800416Z", "completed_at": "2021-03-11T16:18:24.046439Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.046883Z", "completed_at": "2021-03-11T16:18:24.046897Z"}], "thread_id": "Thread-2", "execution_time": 0.2618680000305176, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.785429Z", "completed_at": "2021-03-11T16:18:24.047895Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.049179Z", "completed_at": "2021-03-11T16:18:24.049188Z"}], "thread_id": "Thread-1", "execution_time": 0.26600122451782227, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.821570Z", "completed_at": "2021-03-11T16:18:24.048828Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.049700Z", "completed_at": "2021-03-11T16:18:24.049710Z"}], "thread_id": "Thread-4", "execution_time": 0.2625761032104492, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:23.800539Z", "completed_at": "2021-03-11T16:18:24.120490Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.120821Z", "completed_at": "2021-03-11T16:18:24.120833Z"}], "thread_id": "Thread-3", "execution_time": 0.33571481704711914, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.071180Z", "completed_at": "2021-03-11T16:18:24.254559Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.254829Z", "completed_at": "2021-03-11T16:18:24.254839Z"}], "thread_id": "Thread-1", "execution_time": 0.18688392639160156, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.071937Z", "completed_at": "2021-03-11T16:18:24.255059Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.256903Z", "completed_at": "2021-03-11T16:18:24.256909Z"}], "thread_id": "Thread-4", "execution_time": 0.18746399879455566, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.049477Z", "completed_at": "2021-03-11T16:18:24.255275Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.257146Z", "completed_at": "2021-03-11T16:18:24.257153Z"}], "thread_id": "Thread-2", "execution_time": 0.2098100185394287, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.122623Z", "completed_at": "2021-03-11T16:18:24.309391Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.310646Z", "completed_at": "2021-03-11T16:18:24.310655Z"}], "thread_id": "Thread-3", "execution_time": 0.19058513641357422, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.313417Z", "completed_at": "2021-03-11T16:18:24.507924Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.508242Z", "completed_at": "2021-03-11T16:18:24.508253Z"}], "thread_id": "Thread-3", "execution_time": 0.19544410705566406, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.259218Z", "completed_at": "2021-03-11T16:18:24.527851Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.528124Z", "completed_at": "2021-03-11T16:18:24.528133Z"}], "thread_id": "Thread-1", "execution_time": 0.2701139450073242, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.279179Z", "completed_at": "2021-03-11T16:18:24.535411Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.535701Z", "completed_at": "2021-03-11T16:18:24.535710Z"}], "thread_id": "Thread-2", "execution_time": 0.2764549255371094, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.270995Z", "completed_at": "2021-03-11T16:18:24.559656Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.559922Z", "completed_at": "2021-03-11T16:18:24.559932Z"}], "thread_id": "Thread-4", "execution_time": 0.3009369373321533, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.509196Z", "completed_at": "2021-03-11T16:18:24.724447Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.725136Z", "completed_at": "2021-03-11T16:18:24.725146Z"}], "thread_id": "Thread-3", "execution_time": 0.2176520824432373, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.536602Z", "completed_at": "2021-03-11T16:18:24.724689Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.725372Z", "completed_at": "2021-03-11T16:18:24.725378Z"}], "thread_id": "Thread-2", "execution_time": 0.19056200981140137, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.529018Z", "completed_at": "2021-03-11T16:18:24.724901Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.725631Z", "completed_at": "2021-03-11T16:18:24.725640Z"}], "thread_id": "Thread-1", "execution_time": 0.19841814041137695, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.560833Z", "completed_at": "2021-03-11T16:18:24.778846Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.781100Z", "completed_at": "2021-03-11T16:18:24.781110Z"}], "thread_id": "Thread-4", "execution_time": 0.22197508811950684, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.784005Z", "completed_at": "2021-03-11T16:18:24.800284Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.800515Z", "completed_at": "2021-03-11T16:18:24.800524Z"}], "thread_id": "Thread-4", "execution_time": 0.017432689666748047, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.801633Z", "completed_at": "2021-03-11T16:18:24.810056Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.810333Z", "completed_at": "2021-03-11T16:18:24.810340Z"}], "thread_id": "Thread-4", "execution_time": 0.009531736373901367, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.811331Z", "completed_at": "2021-03-11T16:18:24.820527Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.820750Z", "completed_at": "2021-03-11T16:18:24.820758Z"}], "thread_id": "Thread-4", "execution_time": 0.010258197784423828, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.821624Z", "completed_at": "2021-03-11T16:18:24.830225Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.830433Z", "completed_at": "2021-03-11T16:18:24.830441Z"}], "thread_id": "Thread-4", "execution_time": 0.009324789047241211, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.831411Z", "completed_at": "2021-03-11T16:18:24.840992Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.841839Z", "completed_at": "2021-03-11T16:18:24.841852Z"}], "thread_id": "Thread-4", "execution_time": 0.012227058410644531, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.845231Z", "completed_at": "2021-03-11T16:18:24.858272Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.858575Z", "completed_at": "2021-03-11T16:18:24.858584Z"}], "thread_id": "Thread-4", "execution_time": 0.014578819274902344, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.861674Z", "completed_at": "2021-03-11T16:18:24.869709Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.869926Z", "completed_at": "2021-03-11T16:18:24.869932Z"}], "thread_id": "Thread-4", "execution_time": 0.008959054946899414, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.870785Z", "completed_at": "2021-03-11T16:18:24.879831Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.880071Z", "completed_at": "2021-03-11T16:18:24.880078Z"}], "thread_id": "Thread-4", "execution_time": 0.009908914566040039, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.880963Z", "completed_at": "2021-03-11T16:18:24.890532Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.890762Z", "completed_at": "2021-03-11T16:18:24.890771Z"}], "thread_id": "Thread-4", "execution_time": 0.010509967803955078, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.891726Z", "completed_at": "2021-03-11T16:18:24.900560Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.900821Z", "completed_at": "2021-03-11T16:18:24.900829Z"}], "thread_id": "Thread-4", "execution_time": 0.00962519645690918, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.901581Z", "completed_at": "2021-03-11T16:18:24.909247Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.909456Z", "completed_at": "2021-03-11T16:18:24.909463Z"}], "thread_id": "Thread-4", "execution_time": 0.008379936218261719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.910192Z", "completed_at": "2021-03-11T16:18:24.917749Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.917955Z", "completed_at": "2021-03-11T16:18:24.917961Z"}], "thread_id": "Thread-4", "execution_time": 0.00826120376586914, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.918685Z", "completed_at": "2021-03-11T16:18:24.926549Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.926832Z", "completed_at": "2021-03-11T16:18:24.926838Z"}], "thread_id": "Thread-4", "execution_time": 0.008648872375488281, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.927568Z", "completed_at": "2021-03-11T16:18:24.951681Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.951903Z", "completed_at": "2021-03-11T16:18:24.951912Z"}], "thread_id": "Thread-4", "execution_time": 0.024860858917236328, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.729234Z", "completed_at": "2021-03-11T16:18:24.957897Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.958149Z", "completed_at": "2021-03-11T16:18:24.958157Z"}], "thread_id": "Thread-2", "execution_time": 0.23494195938110352, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.729083Z", "completed_at": "2021-03-11T16:18:24.974088Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.974820Z", "completed_at": "2021-03-11T16:18:24.974830Z"}], "thread_id": "Thread-3", "execution_time": 0.24768614768981934, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.952686Z", "completed_at": "2021-03-11T16:18:24.975043Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.976149Z", "completed_at": "2021-03-11T16:18:24.976155Z"}], "thread_id": "Thread-4", "execution_time": 0.024722814559936523, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.729398Z", "completed_at": "2021-03-11T16:18:24.975595Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.976509Z", "completed_at": "2021-03-11T16:18:24.976515Z"}], "thread_id": "Thread-1", "execution_time": 0.257861852645874, "message": null, "adapter_response": {}, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.976385Z", "completed_at": "2021-03-11T16:18:24.988498Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:24.998737Z", "completed_at": "2021-03-11T16:18:24.998746Z"}], "thread_id": "Thread-2", "execution_time": 0.03297901153564453, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.987812Z", "completed_at": "2021-03-11T16:18:25.008452Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.018037Z", "completed_at": "2021-03-11T16:18:25.018047Z"}], "thread_id": "Thread-3", "execution_time": 0.0322568416595459, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.998596Z", "completed_at": "2021-03-11T16:18:25.018355Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.019476Z", "completed_at": "2021-03-11T16:18:25.019485Z"}], "thread_id": "Thread-4", "execution_time": 0.032258033752441406, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:24.998987Z", "completed_at": "2021-03-11T16:18:25.019212Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.020112Z", "completed_at": "2021-03-11T16:18:25.020119Z"}], "thread_id": "Thread-1", "execution_time": 0.04098701477050781, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.019738Z", "completed_at": "2021-03-11T16:18:25.030710Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.042419Z", "completed_at": "2021-03-11T16:18:25.042433Z"}], "thread_id": "Thread-2", "execution_time": 0.02480912208557129, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.030327Z", "completed_at": "2021-03-11T16:18:25.049933Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.062232Z", "completed_at": "2021-03-11T16:18:25.062243Z"}], "thread_id": "Thread-3", "execution_time": 0.03370380401611328, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.042763Z", "completed_at": "2021-03-11T16:18:25.063554Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.070553Z", "completed_at": "2021-03-11T16:18:25.070562Z"}], "thread_id": "Thread-4", "execution_time": 0.04262971878051758, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.043064Z", "completed_at": "2021-03-11T16:18:25.063769Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.072914Z", "completed_at": "2021-03-11T16:18:25.072920Z"}], "thread_id": "Thread-1", "execution_time": 0.03208804130554199, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.063382Z", "completed_at": "2021-03-11T16:18:25.074961Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.083577Z", "completed_at": "2021-03-11T16:18:25.083585Z"}], "thread_id": "Thread-2", "execution_time": 0.022063016891479492, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.074229Z", "completed_at": "2021-03-11T16:18:25.084474Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.102766Z", "completed_at": "2021-03-11T16:18:25.102779Z"}], "thread_id": "Thread-3", "execution_time": 0.03257274627685547, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.083891Z", "completed_at": "2021-03-11T16:18:25.106125Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.106821Z", "completed_at": "2021-03-11T16:18:25.106829Z"}], "thread_id": "Thread-4", "execution_time": 0.024645090103149414, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.084331Z", "completed_at": "2021-03-11T16:18:25.107079Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.107899Z", "completed_at": "2021-03-11T16:18:25.107905Z"}], "thread_id": "Thread-1", "execution_time": 0.03400993347167969, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.117005Z", "completed_at": "2021-03-11T16:18:25.132600Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.151476Z", "completed_at": "2021-03-11T16:18:25.151494Z"}], "thread_id": "Thread-3", "execution_time": 0.05733919143676758, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.107307Z", "completed_at": "2021-03-11T16:18:25.150607Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.164088Z", "completed_at": "2021-03-11T16:18:25.164100Z"}], "thread_id": "Thread-2", "execution_time": 0.058812856674194336, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.125974Z", "completed_at": "2021-03-11T16:18:25.164322Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.165429Z", "completed_at": "2021-03-11T16:18:25.165437Z"}], "thread_id": "Thread-4", "execution_time": 0.04302787780761719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.150263Z", "completed_at": "2021-03-11T16:18:25.165973Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.167134Z", "completed_at": "2021-03-11T16:18:25.167141Z"}], "thread_id": "Thread-1", "execution_time": 0.04194521903991699, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.167864Z", "completed_at": "2021-03-11T16:18:25.194565Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.204127Z", "completed_at": "2021-03-11T16:18:25.204138Z"}], "thread_id": "Thread-3", "execution_time": 0.04364800453186035, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.168282Z", "completed_at": "2021-03-11T16:18:25.203835Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.210083Z", "completed_at": "2021-03-11T16:18:25.210094Z"}], "thread_id": "Thread-2", "execution_time": 0.04359102249145508, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.187214Z", "completed_at": "2021-03-11T16:18:25.211445Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.212354Z", "completed_at": "2021-03-11T16:18:25.212361Z"}], "thread_id": "Thread-4", "execution_time": 0.04502606391906738, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.194426Z", "completed_at": "2021-03-11T16:18:25.211781Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.212910Z", "completed_at": "2021-03-11T16:18:25.212919Z"}], "thread_id": "Thread-1", "execution_time": 0.02627086639404297, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.213578Z", "completed_at": "2021-03-11T16:18:25.233480Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.234154Z", "completed_at": "2021-03-11T16:18:25.234162Z"}], "thread_id": "Thread-2", "execution_time": 0.03753781318664551, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.213184Z", "completed_at": "2021-03-11T16:18:25.233778Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.244375Z", "completed_at": "2021-03-11T16:18:25.244389Z"}], "thread_id": "Thread-3", "execution_time": 0.0430150032043457, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.233705Z", "completed_at": "2021-03-11T16:18:25.255818Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.256916Z", "completed_at": "2021-03-11T16:18:25.256925Z"}], "thread_id": "Thread-4", "execution_time": 0.02514195442199707, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.234019Z", "completed_at": "2021-03-11T16:18:25.257149Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.257921Z", "completed_at": "2021-03-11T16:18:25.257928Z"}], "thread_id": "Thread-1", "execution_time": 0.04552197456359863, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.257530Z", "completed_at": "2021-03-11T16:18:25.279711Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.280484Z", "completed_at": "2021-03-11T16:18:25.280492Z"}], "thread_id": "Thread-3", "execution_time": 0.03470611572265625, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.257412Z", "completed_at": "2021-03-11T16:18:25.280009Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.287038Z", "completed_at": "2021-03-11T16:18:25.287055Z"}], "thread_id": "Thread-2", "execution_time": 0.035360097885131836, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.279936Z", "completed_at": "2021-03-11T16:18:25.302546Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.304015Z", "completed_at": "2021-03-11T16:18:25.304024Z"}], "thread_id": "Thread-4", "execution_time": 0.025905847549438477, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.290953Z", "completed_at": "2021-03-11T16:18:25.303749Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.304487Z", "completed_at": "2021-03-11T16:18:25.304494Z"}], "thread_id": "Thread-1", "execution_time": 0.04316377639770508, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.304256Z", "completed_at": "2021-03-11T16:18:25.324998Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.325636Z", "completed_at": "2021-03-11T16:18:25.325644Z"}], "thread_id": "Thread-3", "execution_time": 0.042115211486816406, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.304372Z", "completed_at": "2021-03-11T16:18:25.325210Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.325876Z", "completed_at": "2021-03-11T16:18:25.325882Z"}], "thread_id": "Thread-2", "execution_time": 0.04203319549560547, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.325520Z", "completed_at": "2021-03-11T16:18:25.346407Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.347452Z", "completed_at": "2021-03-11T16:18:25.347461Z"}], "thread_id": "Thread-1", "execution_time": 0.02361273765563965, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.325405Z", "completed_at": "2021-03-11T16:18:25.346630Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.347698Z", "completed_at": "2021-03-11T16:18:25.347705Z"}], "thread_id": "Thread-4", "execution_time": 0.024311065673828125, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.347924Z", "completed_at": "2021-03-11T16:18:25.369103Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.369984Z", "completed_at": "2021-03-11T16:18:25.369991Z"}], "thread_id": "Thread-3", "execution_time": 0.03954887390136719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.348042Z", "completed_at": "2021-03-11T16:18:25.369637Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.378188Z", "completed_at": "2021-03-11T16:18:25.378197Z"}], "thread_id": "Thread-2", "execution_time": 0.03967595100402832, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.369556Z", "completed_at": "2021-03-11T16:18:25.387347Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.388342Z", "completed_at": "2021-03-11T16:18:25.388351Z"}], "thread_id": "Thread-1", "execution_time": 0.02103590965270996, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.369859Z", "completed_at": "2021-03-11T16:18:25.388902Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.389939Z", "completed_at": "2021-03-11T16:18:25.389949Z"}], "thread_id": "Thread-4", "execution_time": 0.03894400596618652, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.389162Z", "completed_at": "2021-03-11T16:18:25.408670Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.409555Z", "completed_at": "2021-03-11T16:18:25.409562Z"}], "thread_id": "Thread-3", "execution_time": 0.029803037643432617, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.389766Z", "completed_at": "2021-03-11T16:18:25.409121Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.417441Z", "completed_at": "2021-03-11T16:18:25.417448Z"}], "thread_id": "Thread-2", "execution_time": 0.029596805572509766, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.408885Z", "completed_at": "2021-03-11T16:18:25.427468Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.428205Z", "completed_at": "2021-03-11T16:18:25.428214Z"}], "thread_id": "Thread-1", "execution_time": 0.02122020721435547, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.417656Z", "completed_at": "2021-03-11T16:18:25.428761Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.429432Z", "completed_at": "2021-03-11T16:18:25.429438Z"}], "thread_id": "Thread-4", "execution_time": 0.040899038314819336, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.428968Z", "completed_at": "2021-03-11T16:18:25.451286Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.452184Z", "completed_at": "2021-03-11T16:18:25.452193Z"}], "thread_id": "Thread-3", "execution_time": 0.03447699546813965, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.429327Z", "completed_at": "2021-03-11T16:18:25.451683Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.461815Z", "completed_at": "2021-03-11T16:18:25.461825Z"}], "thread_id": "Thread-2", "execution_time": 0.034256935119628906, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.451537Z", "completed_at": "2021-03-11T16:18:25.471968Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.472980Z", "completed_at": "2021-03-11T16:18:25.472991Z"}], "thread_id": "Thread-1", "execution_time": 0.023504972457885742, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.462083Z", "completed_at": "2021-03-11T16:18:25.473223Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.474162Z", "completed_at": "2021-03-11T16:18:25.474170Z"}], "thread_id": "Thread-4", "execution_time": 0.03174996376037598, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.473734Z", "completed_at": "2021-03-11T16:18:25.504434Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.504713Z", "completed_at": "2021-03-11T16:18:25.504722Z"}], "thread_id": "Thread-3", "execution_time": 0.03246879577636719, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.495452Z", "completed_at": "2021-03-11T16:18:25.505353Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.505601Z", "completed_at": "2021-03-11T16:18:25.505608Z"}], "thread_id": "Thread-1", "execution_time": 0.011161088943481445, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2021-03-11T16:18:25.474410Z", "completed_at": "2021-03-11T16:18:25.506143Z"}, {"name": "execute", "started_at": "2021-03-11T16:18:25.506368Z", "completed_at": "2021-03-11T16:18:25.506374Z"}], "thread_id": "Thread-2", "execution_time": 0.03325009346008301, "message": null, "adapter_response": {}, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id"}], "elapsed_time": 5.366480112075806, "args": {"log_format": "default", "write_json": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "target": "bigquery", "use_cache": true, "compile": true, "version_check": true, "which": "generate", "rpc_method": "docs.generate"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.2.1", "generated_at": "2022-09-26T20:48:46.183639Z", "invocation_id": "2e1a352c-57aa-4f64-a60f-68b0a866a677", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.063709Z", "completed_at": "2022-09-26T20:48:42.071402Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.072184Z", "completed_at": "2022-09-26T20:48:42.072194Z"}], "thread_id": "Thread-1", "execution_time": 0.010931015014648438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.063851Z", "completed_at": "2022-09-26T20:48:42.071515Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.072290Z", "completed_at": "2022-09-26T20:48:42.072294Z"}], "thread_id": "Thread-2", "execution_time": 0.010806798934936523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.063971Z", "completed_at": "2022-09-26T20:48:42.071612Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.072382Z", "completed_at": "2022-09-26T20:48:42.072385Z"}], "thread_id": "Thread-3", "execution_time": 0.010809898376464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.064086Z", "completed_at": "2022-09-26T20:48:42.071704Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.072475Z", "completed_at": "2022-09-26T20:48:42.072478Z"}], "thread_id": "Thread-4", "execution_time": 0.010827064514160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.076132Z", "completed_at": "2022-09-26T20:48:42.083126Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.083831Z", "completed_at": "2022-09-26T20:48:42.083837Z"}], "thread_id": "Thread-1", "execution_time": 0.009278297424316406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.076216Z", "completed_at": "2022-09-26T20:48:42.083231Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.083916Z", "completed_at": "2022-09-26T20:48:42.083918Z"}], "thread_id": "Thread-2", "execution_time": 0.009244918823242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.076299Z", "completed_at": "2022-09-26T20:48:42.083320Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.083997Z", "completed_at": "2022-09-26T20:48:42.084000Z"}], "thread_id": "Thread-3", "execution_time": 0.009251117706298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bill_payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.076379Z", "completed_at": "2022-09-26T20:48:42.083405Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.084077Z", "completed_at": "2022-09-26T20:48:42.084080Z"}], "thread_id": "Thread-4", "execution_time": 0.009281158447265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.087088Z", "completed_at": "2022-09-26T20:48:42.092353Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.092917Z", "completed_at": "2022-09-26T20:48:42.092923Z"}], "thread_id": "Thread-1", "execution_time": 0.007183074951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.bundle_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.087162Z", "completed_at": "2022-09-26T20:48:42.092429Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.092993Z", "completed_at": "2022-09-26T20:48:42.092995Z"}], "thread_id": "Thread-2", "execution_time": 0.007175922393798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_card_payment_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.087234Z", "completed_at": "2022-09-26T20:48:42.092499Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.093073Z", "completed_at": "2022-09-26T20:48:42.093076Z"}], "thread_id": "Thread-3", "execution_time": 0.007188081741333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.087305Z", "completed_at": "2022-09-26T20:48:42.092566Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.093141Z", "completed_at": "2022-09-26T20:48:42.093144Z"}], "thread_id": "Thread-4", "execution_time": 0.007197141647338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.credit_memo_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.095481Z", "completed_at": "2022-09-26T20:48:42.100817Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.101389Z", "completed_at": "2022-09-26T20:48:42.101393Z"}], "thread_id": "Thread-1", "execution_time": 0.0071179866790771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.095554Z", "completed_at": "2022-09-26T20:48:42.100895Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.101461Z", "completed_at": "2022-09-26T20:48:42.101464Z"}], "thread_id": "Thread-2", "execution_time": 0.007146120071411133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.095620Z", "completed_at": "2022-09-26T20:48:42.100964Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.101528Z", "completed_at": "2022-09-26T20:48:42.101530Z"}], "thread_id": "Thread-3", "execution_time": 0.00718998908996582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.deposit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.095694Z", "completed_at": "2022-09-26T20:48:42.101031Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.101594Z", "completed_at": "2022-09-26T20:48:42.101596Z"}], "thread_id": "Thread-4", "execution_time": 0.007217884063720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.deposit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.103830Z", "completed_at": "2022-09-26T20:48:42.131005Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.131543Z", "completed_at": "2022-09-26T20:48:42.131549Z"}], "thread_id": "Thread-1", "execution_time": 0.028847932815551758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.estimate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.103904Z", "completed_at": "2022-09-26T20:48:42.131086Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.131609Z", "completed_at": "2022-09-26T20:48:42.131612Z"}], "thread_id": "Thread-2", "execution_time": 0.02889084815979004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.estimate_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.104032Z", "completed_at": "2022-09-26T20:48:42.131151Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.131670Z", "completed_at": "2022-09-26T20:48:42.131674Z"}], "thread_id": "Thread-3", "execution_time": 0.02891707420349121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.104093Z", "completed_at": "2022-09-26T20:48:42.131214Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.131731Z", "completed_at": "2022-09-26T20:48:42.131732Z"}], "thread_id": "Thread-4", "execution_time": 0.028941869735717773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_bundle_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.133855Z", "completed_at": "2022-09-26T20:48:42.137867Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.138363Z", "completed_at": "2022-09-26T20:48:42.138367Z"}], "thread_id": "Thread-1", "execution_time": 0.00565028190612793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.133916Z", "completed_at": "2022-09-26T20:48:42.137936Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.138429Z", "completed_at": "2022-09-26T20:48:42.138431Z"}], "thread_id": "Thread-2", "execution_time": 0.005634784698486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.invoice_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.133973Z", "completed_at": "2022-09-26T20:48:42.137997Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.138489Z", "completed_at": "2022-09-26T20:48:42.138491Z"}], "thread_id": "Thread-3", "execution_time": 0.005670785903930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.134030Z", "completed_at": "2022-09-26T20:48:42.138059Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.138548Z", "completed_at": "2022-09-26T20:48:42.138550Z"}], "thread_id": "Thread-4", "execution_time": 0.0056798458099365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.141257Z", "completed_at": "2022-09-26T20:48:42.145086Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.145593Z", "completed_at": "2022-09-26T20:48:42.145598Z"}], "thread_id": "Thread-1", "execution_time": 0.0060727596282958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.journal_entry_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.141325Z", "completed_at": "2022-09-26T20:48:42.145150Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.145658Z", "completed_at": "2022-09-26T20:48:42.145660Z"}], "thread_id": "Thread-2", "execution_time": 0.006039142608642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.payment_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.141386Z", "completed_at": "2022-09-26T20:48:42.145226Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.145717Z", "completed_at": "2022-09-26T20:48:42.145719Z"}], "thread_id": "Thread-3", "execution_time": 0.006069183349609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.payment_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.141445Z", "completed_at": "2022-09-26T20:48:42.145290Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.145776Z", "completed_at": "2022-09-26T20:48:42.145778Z"}], "thread_id": "Thread-4", "execution_time": 0.005444049835205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.147748Z", "completed_at": "2022-09-26T20:48:42.152238Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.152781Z", "completed_at": "2022-09-26T20:48:42.152785Z"}], "thread_id": "Thread-1", "execution_time": 0.006169795989990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.147806Z", "completed_at": "2022-09-26T20:48:42.152309Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.152846Z", "completed_at": "2022-09-26T20:48:42.152849Z"}], "thread_id": "Thread-2", "execution_time": 0.006157875061035156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.147864Z", "completed_at": "2022-09-26T20:48:42.152371Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.152907Z", "completed_at": "2022-09-26T20:48:42.152909Z"}], "thread_id": "Thread-3", "execution_time": 0.0061419010162353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.147920Z", "completed_at": "2022-09-26T20:48:42.152430Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.152967Z", "completed_at": "2022-09-26T20:48:42.152969Z"}], "thread_id": "Thread-4", "execution_time": 0.0061550140380859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.purchase_order_linked_txn_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.155005Z", "completed_at": "2022-09-26T20:48:42.159615Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.160116Z", "completed_at": "2022-09-26T20:48:42.160120Z"}], "thread_id": "Thread-1", "execution_time": 0.006273984909057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.155065Z", "completed_at": "2022-09-26T20:48:42.159683Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.160179Z", "completed_at": "2022-09-26T20:48:42.160181Z"}], "thread_id": "Thread-2", "execution_time": 0.006237983703613281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.refund_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.155136Z", "completed_at": "2022-09-26T20:48:42.159745Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.160238Z", "completed_at": "2022-09-26T20:48:42.160240Z"}], "thread_id": "Thread-3", "execution_time": 0.006233930587768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.155204Z", "completed_at": "2022-09-26T20:48:42.159806Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.160298Z", "completed_at": "2022-09-26T20:48:42.160300Z"}], "thread_id": "Thread-4", "execution_time": 0.006263017654418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.sales_receipt_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.162334Z", "completed_at": "2022-09-26T20:48:42.166115Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.166609Z", "completed_at": "2022-09-26T20:48:42.166615Z"}], "thread_id": "Thread-1", "execution_time": 0.005422115325927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.transfer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.162393Z", "completed_at": "2022-09-26T20:48:42.166182Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.166675Z", "completed_at": "2022-09-26T20:48:42.166677Z"}], "thread_id": "Thread-2", "execution_time": 0.005404949188232422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.162450Z", "completed_at": "2022-09-26T20:48:42.166245Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.166734Z", "completed_at": "2022-09-26T20:48:42.166736Z"}], "thread_id": "Thread-3", "execution_time": 0.0054168701171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_credit_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.162507Z", "completed_at": "2022-09-26T20:48:42.166303Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.166796Z", "completed_at": "2022-09-26T20:48:42.166798Z"}], "thread_id": "Thread-4", "execution_time": 0.005385875701904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.quickbooks_source_integration_tests.vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.169079Z", "completed_at": "2022-09-26T20:48:42.178904Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.179073Z", "completed_at": "2022-09-26T20:48:42.179078Z"}], "thread_id": "Thread-2", "execution_time": 0.01084589958190918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.169147Z", "completed_at": "2022-09-26T20:48:42.181603Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.182193Z", "completed_at": "2022-09-26T20:48:42.182198Z"}], "thread_id": "Thread-3", "execution_time": 0.01400899887084961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.169017Z", "completed_at": "2022-09-26T20:48:42.181715Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.182264Z", "completed_at": "2022-09-26T20:48:42.182267Z"}], "thread_id": "Thread-1", "execution_time": 0.014458894729614258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.169211Z", "completed_at": "2022-09-26T20:48:42.181836Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.182345Z", "completed_at": "2022-09-26T20:48:42.182348Z"}], "thread_id": "Thread-4", "execution_time": 0.014200925827026367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.179657Z", "completed_at": "2022-09-26T20:48:42.182395Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.183461Z", "completed_at": "2022-09-26T20:48:42.183464Z"}], "thread_id": "Thread-2", "execution_time": 0.00453495979309082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.184447Z", "completed_at": "2022-09-26T20:48:42.193285Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.193451Z", "completed_at": "2022-09-26T20:48:42.193455Z"}], "thread_id": "Thread-3", "execution_time": 0.010070085525512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.184513Z", "completed_at": "2022-09-26T20:48:42.194139Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.196698Z", "completed_at": "2022-09-26T20:48:42.196703Z"}], "thread_id": "Thread-1", "execution_time": 0.013341903686523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.184576Z", "completed_at": "2022-09-26T20:48:42.194401Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.196870Z", "completed_at": "2022-09-26T20:48:42.196873Z"}], "thread_id": "Thread-4", "execution_time": 0.013521194458007812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.191306Z", "completed_at": "2022-09-26T20:48:42.194565Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.197148Z", "completed_at": "2022-09-26T20:48:42.197150Z"}], "thread_id": "Thread-2", "execution_time": 0.013015985488891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.194342Z", "completed_at": "2022-09-26T20:48:42.197206Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.198243Z", "completed_at": "2022-09-26T20:48:42.198246Z"}], "thread_id": "Thread-3", "execution_time": 0.004872798919677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.199095Z", "completed_at": "2022-09-26T20:48:42.207915Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.208465Z", "completed_at": "2022-09-26T20:48:42.208471Z"}], "thread_id": "Thread-4", "execution_time": 0.010505914688110352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.198832Z", "completed_at": "2022-09-26T20:48:42.208007Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.208598Z", "completed_at": "2022-09-26T20:48:42.208600Z"}], "thread_id": "Thread-1", "execution_time": 0.011070966720581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.201216Z", "completed_at": "2022-09-26T20:48:42.208081Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.208663Z", "completed_at": "2022-09-26T20:48:42.208666Z"}], "thread_id": "Thread-2", "execution_time": 0.01071310043334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.205994Z", "completed_at": "2022-09-26T20:48:42.208245Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.208924Z", "completed_at": "2022-09-26T20:48:42.208926Z"}], "thread_id": "Thread-3", "execution_time": 0.008255958557128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.210845Z", "completed_at": "2022-09-26T20:48:42.219600Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.219952Z", "completed_at": "2022-09-26T20:48:42.219957Z"}], "thread_id": "Thread-4", "execution_time": 0.010352134704589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.210975Z", "completed_at": "2022-09-26T20:48:42.219821Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.220459Z", "completed_at": "2022-09-26T20:48:42.220462Z"}], "thread_id": "Thread-1", "execution_time": 0.010605812072753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.211038Z", "completed_at": "2022-09-26T20:48:42.219887Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.220599Z", "completed_at": "2022-09-26T20:48:42.220601Z"}], "thread_id": "Thread-2", "execution_time": 0.010719060897827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.213042Z", "completed_at": "2022-09-26T20:48:42.220099Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.221002Z", "completed_at": "2022-09-26T20:48:42.221005Z"}], "thread_id": "Thread-3", "execution_time": 0.010982036590576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.222364Z", "completed_at": "2022-09-26T20:48:42.228739Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.231092Z", "completed_at": "2022-09-26T20:48:42.231097Z"}], "thread_id": "Thread-4", "execution_time": 0.010221242904663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.224624Z", "completed_at": "2022-09-26T20:48:42.230738Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.231305Z", "completed_at": "2022-09-26T20:48:42.231308Z"}], "thread_id": "Thread-1", "execution_time": 0.009881019592285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.224780Z", "completed_at": "2022-09-26T20:48:42.230935Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.231583Z", "completed_at": "2022-09-26T20:48:42.231585Z"}], "thread_id": "Thread-2", "execution_time": 0.009859085083007812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.226781Z", "completed_at": "2022-09-26T20:48:42.231243Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.232205Z", "completed_at": "2022-09-26T20:48:42.232208Z"}], "thread_id": "Thread-3", "execution_time": 0.010249853134155273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.233390Z", "completed_at": "2022-09-26T20:48:42.240174Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.242664Z", "completed_at": "2022-09-26T20:48:42.242670Z"}], "thread_id": "Thread-4", "execution_time": 0.010587930679321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.233642Z", "completed_at": "2022-09-26T20:48:42.242240Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.242737Z", "completed_at": "2022-09-26T20:48:42.242740Z"}], "thread_id": "Thread-1", "execution_time": 0.01032400131225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.235414Z", "completed_at": "2022-09-26T20:48:42.242297Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.242808Z", "completed_at": "2022-09-26T20:48:42.242811Z"}], "thread_id": "Thread-2", "execution_time": 0.010304927825927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.239996Z", "completed_at": "2022-09-26T20:48:42.242860Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.243959Z", "completed_at": "2022-09-26T20:48:42.243962Z"}], "thread_id": "Thread-3", "execution_time": 0.01094818115234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.244977Z", "completed_at": "2022-09-26T20:48:42.253529Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.254036Z", "completed_at": "2022-09-26T20:48:42.254043Z"}], "thread_id": "Thread-1", "execution_time": 0.010229110717773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.245038Z", "completed_at": "2022-09-26T20:48:42.253588Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.254110Z", "completed_at": "2022-09-26T20:48:42.254114Z"}], "thread_id": "Thread-2", "execution_time": 0.01027369499206543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.244912Z", "completed_at": "2022-09-26T20:48:42.253647Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.254178Z", "completed_at": "2022-09-26T20:48:42.254180Z"}], "thread_id": "Thread-4", "execution_time": 0.010698795318603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.251381Z", "completed_at": "2022-09-26T20:48:42.253972Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.254823Z", "completed_at": "2022-09-26T20:48:42.254825Z"}], "thread_id": "Thread-3", "execution_time": 0.010286092758178711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.256401Z", "completed_at": "2022-09-26T20:48:42.264261Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.264711Z", "completed_at": "2022-09-26T20:48:42.264716Z"}], "thread_id": "Thread-1", "execution_time": 0.009566068649291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.256464Z", "completed_at": "2022-09-26T20:48:42.264327Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.264850Z", "completed_at": "2022-09-26T20:48:42.264853Z"}], "thread_id": "Thread-2", "execution_time": 0.009671926498413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.256526Z", "completed_at": "2022-09-26T20:48:42.264499Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.265159Z", "completed_at": "2022-09-26T20:48:42.265162Z"}], "thread_id": "Thread-4", "execution_time": 0.00993800163269043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.262135Z", "completed_at": "2022-09-26T20:48:42.264644Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.265384Z", "completed_at": "2022-09-26T20:48:42.265386Z"}], "thread_id": "Thread-3", "execution_time": 0.009807109832763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.267015Z", "completed_at": "2022-09-26T20:48:42.273729Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.276155Z", "completed_at": "2022-09-26T20:48:42.276160Z"}], "thread_id": "Thread-1", "execution_time": 0.010422945022583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.267139Z", "completed_at": "2022-09-26T20:48:42.275789Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.276366Z", "completed_at": "2022-09-26T20:48:42.276369Z"}], "thread_id": "Thread-2", "execution_time": 0.010508060455322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.269830Z", "completed_at": "2022-09-26T20:48:42.275994Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.276677Z", "completed_at": "2022-09-26T20:48:42.276680Z"}], "thread_id": "Thread-4", "execution_time": 0.010506153106689453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.271678Z", "completed_at": "2022-09-26T20:48:42.276301Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.277334Z", "completed_at": "2022-09-26T20:48:42.277337Z"}], "thread_id": "Thread-3", "execution_time": 0.010986804962158203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.278505Z", "completed_at": "2022-09-26T20:48:42.289976Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.294648Z", "completed_at": "2022-09-26T20:48:42.294657Z"}], "thread_id": "Thread-1", "execution_time": 0.017490148544311523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.278756Z", "completed_at": "2022-09-26T20:48:42.294097Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.294794Z", "completed_at": "2022-09-26T20:48:42.294797Z"}], "thread_id": "Thread-2", "execution_time": 0.017253875732421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.280821Z", "completed_at": "2022-09-26T20:48:42.609914Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.610271Z", "completed_at": "2022-09-26T20:48:42.610282Z"}], "thread_id": "Thread-4", "execution_time": 0.35935497283935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.296497Z", "completed_at": "2022-09-26T20:48:42.615016Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.615313Z", "completed_at": "2022-09-26T20:48:42.615317Z"}], "thread_id": "Thread-2", "execution_time": 0.3470630645751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.296422Z", "completed_at": "2022-09-26T20:48:42.617058Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.617348Z", "completed_at": "2022-09-26T20:48:42.617351Z"}], "thread_id": "Thread-1", "execution_time": 0.34754323959350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__account"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.289685Z", "completed_at": "2022-09-26T20:48:42.616913Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.617133Z", "completed_at": "2022-09-26T20:48:42.617137Z"}], "thread_id": "Thread-3", "execution_time": 0.3648550510406494, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.638185Z", "completed_at": "2022-09-26T20:48:42.914641Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.914966Z", "completed_at": "2022-09-26T20:48:42.914983Z"}], "thread_id": "Thread-4", "execution_time": 0.3064920902252197, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.645069Z", "completed_at": "2022-09-26T20:48:42.993234Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.993589Z", "completed_at": "2022-09-26T20:48:42.993596Z"}], "thread_id": "Thread-3", "execution_time": 0.3729360103607178, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.645006Z", "completed_at": "2022-09-26T20:48:42.998538Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.998772Z", "completed_at": "2022-09-26T20:48:42.998776Z"}], "thread_id": "Thread-1", "execution_time": 0.3795628547668457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.644942Z", "completed_at": "2022-09-26T20:48:42.998716Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:42.998985Z", "completed_at": "2022-09-26T20:48:42.998987Z"}], "thread_id": "Thread-2", "execution_time": 0.37999796867370605, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bill_payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:42.946135Z", "completed_at": "2022-09-26T20:48:43.236070Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.236374Z", "completed_at": "2022-09-26T20:48:43.236389Z"}], "thread_id": "Thread-4", "execution_time": 0.31711792945861816, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__bundle_item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.018207Z", "completed_at": "2022-09-26T20:48:43.299979Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.300221Z", "completed_at": "2022-09-26T20:48:43.300233Z"}], "thread_id": "Thread-3", "execution_time": 0.31974196434020996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_card_payment_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.025458Z", "completed_at": "2022-09-26T20:48:43.355500Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.355784Z", "completed_at": "2022-09-26T20:48:43.355786Z"}], "thread_id": "Thread-2", "execution_time": 0.3590729236602783, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.025381Z", "completed_at": "2022-09-26T20:48:43.355339Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.355563Z", "completed_at": "2022-09-26T20:48:43.355568Z"}], "thread_id": "Thread-1", "execution_time": 0.5218989849090576, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__credit_memo_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.264130Z", "completed_at": "2022-09-26T20:48:43.560205Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.560405Z", "completed_at": "2022-09-26T20:48:43.560412Z"}], "thread_id": "Thread-4", "execution_time": 0.32127904891967773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__customer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.338496Z", "completed_at": "2022-09-26T20:48:43.638276Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.638462Z", "completed_at": "2022-09-26T20:48:43.638471Z"}], "thread_id": "Thread-3", "execution_time": 0.3361399173736572, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__department"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.384802Z", "completed_at": "2022-09-26T20:48:43.670474Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.670640Z", "completed_at": "2022-09-26T20:48:43.670646Z"}], "thread_id": "Thread-2", "execution_time": 0.3105130195617676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.585717Z", "completed_at": "2022-09-26T20:48:43.880417Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.880625Z", "completed_at": "2022-09-26T20:48:43.880633Z"}], "thread_id": "Thread-4", "execution_time": 0.32240891456604004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.674855Z", "completed_at": "2022-09-26T20:48:43.972685Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.972934Z", "completed_at": "2022-09-26T20:48:43.972941Z"}], "thread_id": "Thread-3", "execution_time": 0.32460474967956543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__estimate"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.695697Z", "completed_at": "2022-09-26T20:48:43.980512Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.980797Z", "completed_at": "2022-09-26T20:48:43.980802Z"}], "thread_id": "Thread-2", "execution_time": 0.3096020221710205, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line_bundle"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.549364Z", "completed_at": "2022-09-26T20:48:43.980582Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:43.980879Z", "completed_at": "2022-09-26T20:48:43.980881Z"}], "thread_id": "Thread-1", "execution_time": 0.45780134201049805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__deposit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.908720Z", "completed_at": "2022-09-26T20:48:44.203954Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.204133Z", "completed_at": "2022-09-26T20:48:44.204140Z"}], "thread_id": "Thread-4", "execution_time": 0.3209671974182129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.005807Z", "completed_at": "2022-09-26T20:48:44.271137Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.275948Z", "completed_at": "2022-09-26T20:48:44.275955Z"}], "thread_id": "Thread-2", "execution_time": 0.31760382652282715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:43.999727Z", "completed_at": "2022-09-26T20:48:44.293457Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.293730Z", "completed_at": "2022-09-26T20:48:44.293732Z"}], "thread_id": "Thread-3", "execution_time": 0.32358503341674805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__invoice_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.010252Z", "completed_at": "2022-09-26T20:48:44.293384Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.293667Z", "completed_at": "2022-09-26T20:48:44.293671Z"}], "thread_id": "Thread-1", "execution_time": 0.317486047744751, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__item"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.230035Z", "completed_at": "2022-09-26T20:48:44.494211Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.494403Z", "completed_at": "2022-09-26T20:48:44.494410Z"}], "thread_id": "Thread-4", "execution_time": 0.29010605812072754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.324660Z", "completed_at": "2022-09-26T20:48:44.756434Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.756840Z", "completed_at": "2022-09-26T20:48:44.756849Z"}], "thread_id": "Thread-2", "execution_time": 0.4596397876739502, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__journal_entry_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.324804Z", "completed_at": "2022-09-26T20:48:44.766460Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.766643Z", "completed_at": "2022-09-26T20:48:44.766647Z"}], "thread_id": "Thread-3", "execution_time": 0.4777190685272217, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.360200Z", "completed_at": "2022-09-26T20:48:44.765977Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.766233Z", "completed_at": "2022-09-26T20:48:44.766239Z"}], "thread_id": "Thread-1", "execution_time": 0.47769808769226074, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.520699Z", "completed_at": "2022-09-26T20:48:44.802914Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:44.803580Z", "completed_at": "2022-09-26T20:48:44.803585Z"}], "thread_id": "Thread-4", "execution_time": 0.3174479007720947, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.803514Z", "completed_at": "2022-09-26T20:48:45.119843Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.120152Z", "completed_at": "2022-09-26T20:48:45.120158Z"}], "thread_id": "Thread-3", "execution_time": 0.35092711448669434, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.784271Z", "completed_at": "2022-09-26T20:48:45.102608Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.103724Z", "completed_at": "2022-09-26T20:48:45.103733Z"}], "thread_id": "Thread-2", "execution_time": 0.3700220584869385, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__payment_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.803653Z", "completed_at": "2022-09-26T20:48:45.126330Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.126472Z", "completed_at": "2022-09-26T20:48:45.126475Z"}], "thread_id": "Thread-1", "execution_time": 0.35116124153137207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:44.838265Z", "completed_at": "2022-09-26T20:48:45.122810Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.123500Z", "completed_at": "2022-09-26T20:48:45.123504Z"}], "thread_id": "Thread-4", "execution_time": 0.3163130283355713, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__purchase_order_linked_txn"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.156054Z", "completed_at": "2022-09-26T20:48:45.534551Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.535078Z", "completed_at": "2022-09-26T20:48:45.535087Z"}], "thread_id": "Thread-3", "execution_time": 0.40672802925109863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.156267Z", "completed_at": "2022-09-26T20:48:45.537787Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.538552Z", "completed_at": "2022-09-26T20:48:45.538558Z"}], "thread_id": "Thread-4", "execution_time": 0.4120030403137207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.156128Z", "completed_at": "2022-09-26T20:48:45.552011Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.552182Z", "completed_at": "2022-09-26T20:48:45.552188Z"}], "thread_id": "Thread-2", "execution_time": 0.4220271110534668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__refund_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.156198Z", "completed_at": "2022-09-26T20:48:45.552251Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.552568Z", "completed_at": "2022-09-26T20:48:45.552572Z"}], "thread_id": "Thread-1", "execution_time": 0.42276978492736816, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__sales_receipt"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.562674Z", "completed_at": "2022-09-26T20:48:45.840645Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.841012Z", "completed_at": "2022-09-26T20:48:45.841019Z"}], "thread_id": "Thread-3", "execution_time": 0.3053009510040283, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__transfer"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.568347Z", "completed_at": "2022-09-26T20:48:45.840927Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.841243Z", "completed_at": "2022-09-26T20:48:45.841246Z"}], "thread_id": "Thread-4", "execution_time": 0.30041003227233887, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.868367Z", "completed_at": "2022-09-26T20:48:45.899827Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.900272Z", "completed_at": "2022-09-26T20:48:45.900279Z"}], "thread_id": "Thread-3", "execution_time": 0.03266596794128418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__address_address_id.4f100ae50c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.895846Z", "completed_at": "2022-09-26T20:48:45.901317Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.901905Z", "completed_at": "2022-09-26T20:48:45.901910Z"}], "thread_id": "Thread-4", "execution_time": 0.019855022430419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__address_address_id.d24d22c82f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.901746Z", "completed_at": "2022-09-26T20:48:45.905787Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.912190Z", "completed_at": "2022-09-26T20:48:45.912199Z"}], "thread_id": "Thread-3", "execution_time": 0.011513948440551758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_line_bill_id.25c5ea7348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.905850Z", "completed_at": "2022-09-26T20:48:45.913154Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.914198Z", "completed_at": "2022-09-26T20:48:45.914202Z"}], "thread_id": "Thread-4", "execution_time": 0.009321928024291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__account_classification__Asset__Equity__Expense__Liability__Revenue.127506f73f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.914379Z", "completed_at": "2022-09-26T20:48:45.918953Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.921894Z", "completed_at": "2022-09-26T20:48:45.921900Z"}], "thread_id": "Thread-3", "execution_time": 0.008847713470458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__account_account_id.9944488b9d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.918879Z", "completed_at": "2022-09-26T20:48:45.922434Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.923424Z", "completed_at": "2022-09-26T20:48:45.923428Z"}], "thread_id": "Thread-4", "execution_time": 0.0071332454681396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__account_account_id.0949eb4e31"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.926352Z", "completed_at": "2022-09-26T20:48:45.966221Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.969786Z", "completed_at": "2022-09-26T20:48:45.969791Z"}], "thread_id": "Thread-3", "execution_time": 0.04697012901306152, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_bill_id.ca717958c8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.967107Z", "completed_at": "2022-09-26T20:48:45.970545Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.971114Z", "completed_at": "2022-09-26T20:48:45.971117Z"}], "thread_id": "Thread-4", "execution_time": 0.006647825241088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_bill_id.171ad8ec00"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.971199Z", "completed_at": "2022-09-26T20:48:45.974139Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.976460Z", "completed_at": "2022-09-26T20:48:45.976469Z"}], "thread_id": "Thread-3", "execution_time": 0.005884885787963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_id.35f96199bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.974078Z", "completed_at": "2022-09-26T20:48:45.976798Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.977164Z", "completed_at": "2022-09-26T20:48:45.977167Z"}], "thread_id": "Thread-4", "execution_time": 0.003496885299682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_linked_txn_bill_payment_id.d0dcbf8af9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.977228Z", "completed_at": "2022-09-26T20:48:45.980851Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.983158Z", "completed_at": "2022-09-26T20:48:45.983162Z"}], "thread_id": "Thread-3", "execution_time": 0.006389141082763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_bundle_id.382e1dad60"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.980785Z", "completed_at": "2022-09-26T20:48:45.983515Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.983856Z", "completed_at": "2022-09-26T20:48:45.983859Z"}], "thread_id": "Thread-4", "execution_time": 0.0035550594329833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bundle_bundle_id.ea14fa3444"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.983921Z", "completed_at": "2022-09-26T20:48:45.988886Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.989058Z", "completed_at": "2022-09-26T20:48:45.989063Z"}], "thread_id": "Thread-3", "execution_time": 0.005643129348754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_bill_payment_id.908899ccfb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.986695Z", "completed_at": "2022-09-26T20:48:45.989409Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.989814Z", "completed_at": "2022-09-26T20:48:45.989818Z"}], "thread_id": "Thread-4", "execution_time": 0.0035600662231445312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bill_payment_line_bill_payment_id.1dbb366150"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.583599Z", "completed_at": "2022-09-26T20:48:45.969851Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.970657Z", "completed_at": "2022-09-26T20:48:45.970662Z"}], "thread_id": "Thread-1", "execution_time": 0.4126558303833008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.578417Z", "completed_at": "2022-09-26T20:48:45.962041Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.967031Z", "completed_at": "2022-09-26T20:48:45.967038Z"}], "thread_id": "Thread-2", "execution_time": 0.4180412292480469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.quickbooks_source.stg_quickbooks__vendor_credit_line"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.989890Z", "completed_at": "2022-09-26T20:48:45.992841Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.995550Z", "completed_at": "2022-09-26T20:48:45.995558Z"}], "thread_id": "Thread-3", "execution_time": 0.006637096405029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__bill_payment_bill_payment_id.fafc3623d5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.992790Z", "completed_at": "2022-09-26T20:48:45.996261Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:45.997224Z", "completed_at": "2022-09-26T20:48:45.997228Z"}], "thread_id": "Thread-4", "execution_time": 0.0049991607666015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__bundle_item_bundle_id.6d547b8c07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.997650Z", "completed_at": "2022-09-26T20:48:46.008076Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.008590Z", "completed_at": "2022-09-26T20:48:46.008595Z"}], "thread_id": "Thread-1", "execution_time": 0.012142658233642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_credit_memo_id.d921d2b152"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.997777Z", "completed_at": "2022-09-26T20:48:46.008150Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.008671Z", "completed_at": "2022-09-26T20:48:46.008675Z"}], "thread_id": "Thread-3", "execution_time": 0.012038230895996094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__credit_memo_line_credit_memo_id.58953be02b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:45.997714Z", "completed_at": "2022-09-26T20:48:46.008211Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.008749Z", "completed_at": "2022-09-26T20:48:46.008751Z"}], "thread_id": "Thread-2", "execution_time": 0.012337923049926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__credit_memo_credit_memo_id.a6a504d8c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.005786Z", "completed_at": "2022-09-26T20:48:46.008521Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.009394Z", "completed_at": "2022-09-26T20:48:46.009397Z"}], "thread_id": "Thread-4", "execution_time": 0.004422903060913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__customer_customer_id.98232a9723"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.010900Z", "completed_at": "2022-09-26T20:48:46.021192Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.021683Z", "completed_at": "2022-09-26T20:48:46.021689Z"}], "thread_id": "Thread-2", "execution_time": 0.01183009147644043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_line_estimate_id.c060f99b4c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.010838Z", "completed_at": "2022-09-26T20:48:46.021256Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.021819Z", "completed_at": "2022-09-26T20:48:46.021821Z"}], "thread_id": "Thread-3", "execution_time": 0.012201070785522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_line_deposit_id.d615f463e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.010774Z", "completed_at": "2022-09-26T20:48:46.021315Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.021884Z", "completed_at": "2022-09-26T20:48:46.021887Z"}], "thread_id": "Thread-1", "execution_time": 0.012495994567871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__customer_customer_id.0ad4d7ccd3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.018335Z", "completed_at": "2022-09-26T20:48:46.021475Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.022143Z", "completed_at": "2022-09-26T20:48:46.022145Z"}], "thread_id": "Thread-4", "execution_time": 0.012085914611816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__estimate_estimate_id.0331d3c310"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.023838Z", "completed_at": "2022-09-26T20:48:46.033789Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.034161Z", "completed_at": "2022-09-26T20:48:46.034166Z"}], "thread_id": "Thread-2", "execution_time": 0.011497020721435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__estimate_estimate_id.a782257a9e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.023961Z", "completed_at": "2022-09-26T20:48:46.033968Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.034674Z", "completed_at": "2022-09-26T20:48:46.034677Z"}], "thread_id": "Thread-3", "execution_time": 0.011790275573730469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_bundle_invoice_id.cfd59b83a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.024026Z", "completed_at": "2022-09-26T20:48:46.034036Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.034747Z", "completed_at": "2022-09-26T20:48:46.034750Z"}], "thread_id": "Thread-1", "execution_time": 0.011837959289550781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__deposit_deposit_id.880b8c37b1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.026252Z", "completed_at": "2022-09-26T20:48:46.034086Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.034821Z", "completed_at": "2022-09-26T20:48:46.034823Z"}], "thread_id": "Thread-4", "execution_time": 0.011807918548583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__deposit_deposit_id.4e07babdc5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.036335Z", "completed_at": "2022-09-26T20:48:46.045241Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.045760Z", "completed_at": "2022-09-26T20:48:46.045768Z"}], "thread_id": "Thread-2", "execution_time": 0.010617733001708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_invoice_id.b6d8e1ad7d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.038683Z", "completed_at": "2022-09-26T20:48:46.045571Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.046228Z", "completed_at": "2022-09-26T20:48:46.046230Z"}], "thread_id": "Thread-3", "execution_time": 0.010609149932861328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__invoice_invoice_id.61a533de04"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.038751Z", "completed_at": "2022-09-26T20:48:46.045635Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.046295Z", "completed_at": "2022-09-26T20:48:46.046297Z"}], "thread_id": "Thread-1", "execution_time": 0.010653018951416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_linked_txn_invoice_id.c9b9c8f8f4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.038816Z", "completed_at": "2022-09-26T20:48:46.045708Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.046360Z", "completed_at": "2022-09-26T20:48:46.046362Z"}], "thread_id": "Thread-4", "execution_time": 0.010687112808227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__invoice_line_invoice_id.0424087a8f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.047832Z", "completed_at": "2022-09-26T20:48:46.058192Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.058650Z", "completed_at": "2022-09-26T20:48:46.058660Z"}], "thread_id": "Thread-2", "execution_time": 0.012006044387817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__item_item_id.da906d8fb9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.051159Z", "completed_at": "2022-09-26T20:48:46.058579Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.059210Z", "completed_at": "2022-09-26T20:48:46.059213Z"}], "thread_id": "Thread-3", "execution_time": 0.012122869491577148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__item_item_id.2ae762da26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.051319Z", "completed_at": "2022-09-26T20:48:46.058737Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.059442Z", "completed_at": "2022-09-26T20:48:46.059445Z"}], "thread_id": "Thread-4", "execution_time": 0.012337923049926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__journal_entry_journal_entry_id.476f42728d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.051245Z", "completed_at": "2022-09-26T20:48:46.058848Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.059719Z", "completed_at": "2022-09-26T20:48:46.059722Z"}], "thread_id": "Thread-1", "execution_time": 0.01275014877319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_journal_entry_id.39198c4ff2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.060926Z", "completed_at": "2022-09-26T20:48:46.069603Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.072078Z", "completed_at": "2022-09-26T20:48:46.072086Z"}], "thread_id": "Thread-2", "execution_time": 0.012747764587402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__journal_entry_line_posting_type__Credit__Debit.ab661907c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.064096Z", "completed_at": "2022-09-26T20:48:46.071945Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.072748Z", "completed_at": "2022-09-26T20:48:46.072752Z"}], "thread_id": "Thread-3", "execution_time": 0.012506246566772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__journal_entry_line_journal_entry_id.bd89a6f784"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.064260Z", "completed_at": "2022-09-26T20:48:46.072178Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.073021Z", "completed_at": "2022-09-26T20:48:46.073025Z"}], "thread_id": "Thread-4", "execution_time": 0.012542247772216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_payment_id.ca2c1ef54f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.067448Z", "completed_at": "2022-09-26T20:48:46.072370Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.073278Z", "completed_at": "2022-09-26T20:48:46.073281Z"}], "thread_id": "Thread-1", "execution_time": 0.012642145156860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__payment_payment_id.984edfee8b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.074679Z", "completed_at": "2022-09-26T20:48:46.084289Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.087733Z", "completed_at": "2022-09-26T20:48:46.087741Z"}], "thread_id": "Thread-2", "execution_time": 0.014775991439819336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_payment_type__Cash__Check__CreditCard.7de7edf458"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.079047Z", "completed_at": "2022-09-26T20:48:46.087549Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.088248Z", "completed_at": "2022-09-26T20:48:46.088251Z"}], "thread_id": "Thread-3", "execution_time": 0.0142669677734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_purchase_id.fc2090959b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.079349Z", "completed_at": "2022-09-26T20:48:46.087679Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.088392Z", "completed_at": "2022-09-26T20:48:46.088394Z"}], "thread_id": "Thread-4", "execution_time": 0.014107942581176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_purchase_id.90e4089097"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.082022Z", "completed_at": "2022-09-26T20:48:46.087890Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.088747Z", "completed_at": "2022-09-26T20:48:46.088750Z"}], "thread_id": "Thread-1", "execution_time": 0.014240026473999023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_line_purchase_id.5406fca79c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.089983Z", "completed_at": "2022-09-26T20:48:46.098726Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.101615Z", "completed_at": "2022-09-26T20:48:46.101624Z"}], "thread_id": "Thread-2", "execution_time": 0.012952804565429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.accepted_values_stg_quickbooks__purchase_order_status__Open__Closed.a86f736065"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.093136Z", "completed_at": "2022-09-26T20:48:46.101493Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.102173Z", "completed_at": "2022-09-26T20:48:46.102176Z"}], "thread_id": "Thread-3", "execution_time": 0.012995004653930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_purchase_order_id.4158032222"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.093371Z", "completed_at": "2022-09-26T20:48:46.101682Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.102439Z", "completed_at": "2022-09-26T20:48:46.102442Z"}], "thread_id": "Thread-4", "execution_time": 0.013087987899780273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__purchase_order_purchase_order_id.d995985613"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.096245Z", "completed_at": "2022-09-26T20:48:46.102033Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.102814Z", "completed_at": "2022-09-26T20:48:46.102817Z"}], "thread_id": "Thread-1", "execution_time": 0.013148307800292969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__payment_line_payment_id.6351e3fe26"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.103616Z", "completed_at": "2022-09-26T20:48:46.110014Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.114559Z", "completed_at": "2022-09-26T20:48:46.114565Z"}], "thread_id": "Thread-2", "execution_time": 0.012253046035766602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_line_purchase_order_id.210718c1c7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.107485Z", "completed_at": "2022-09-26T20:48:46.114443Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.115057Z", "completed_at": "2022-09-26T20:48:46.115060Z"}], "thread_id": "Thread-3", "execution_time": 0.011938095092773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__purchase_order_linked_txn_purchase_order_id.d9f0186f4e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.107645Z", "completed_at": "2022-09-26T20:48:46.114739Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.115526Z", "completed_at": "2022-09-26T20:48:46.115528Z"}], "thread_id": "Thread-4", "execution_time": 0.012153863906860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_line_refund_id.57df809b80"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.109956Z", "completed_at": "2022-09-26T20:48:46.114795Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.115593Z", "completed_at": "2022-09-26T20:48:46.115595Z"}], "thread_id": "Thread-1", "execution_time": 0.008842945098876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_line_sales_receipt_id.9be0667fc3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.116588Z", "completed_at": "2022-09-26T20:48:46.122525Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.127638Z", "completed_at": "2022-09-26T20:48:46.127646Z"}], "thread_id": "Thread-2", "execution_time": 0.01234579086303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__refund_receipt_refund_id.29e8a8216e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.119169Z", "completed_at": "2022-09-26T20:48:46.127448Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.128183Z", "completed_at": "2022-09-26T20:48:46.128187Z"}], "thread_id": "Thread-3", "execution_time": 0.012313127517700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__refund_receipt_refund_id.0c04081923"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.122394Z", "completed_at": "2022-09-26T20:48:46.127846Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.128709Z", "completed_at": "2022-09-26T20:48:46.128712Z"}], "thread_id": "Thread-4", "execution_time": 0.012404918670654297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__sales_receipt_sales_receipt_id.b97c1a238a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.122469Z", "completed_at": "2022-09-26T20:48:46.128111Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.128906Z", "completed_at": "2022-09-26T20:48:46.128909Z"}], "thread_id": "Thread-1", "execution_time": 0.012527942657470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__sales_receipt_sales_receipt_id.68c39f4e95"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.129681Z", "completed_at": "2022-09-26T20:48:46.168004Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.174713Z", "completed_at": "2022-09-26T20:48:46.174721Z"}], "thread_id": "Thread-2", "execution_time": 0.046402931213378906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__transfer_transfer_id.c1c80a253c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.132891Z", "completed_at": "2022-09-26T20:48:46.174618Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.175367Z", "completed_at": "2022-09-26T20:48:46.175370Z"}], "thread_id": "Thread-3", "execution_time": 0.04629993438720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__transfer_transfer_id.100f0b5aac"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.167870Z", "completed_at": "2022-09-26T20:48:46.174956Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.175863Z", "completed_at": "2022-09-26T20:48:46.175866Z"}], "thread_id": "Thread-4", "execution_time": 0.046356916427612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_credit_vendor_credit_id.1275a5ab5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.168253Z", "completed_at": "2022-09-26T20:48:46.175293Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.176063Z", "completed_at": "2022-09-26T20:48:46.176066Z"}], "thread_id": "Thread-1", "execution_time": 0.044304847717285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_credit_vendor_credit_id.211de8a6a9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.176867Z", "completed_at": "2022-09-26T20:48:46.181902Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.182181Z", "completed_at": "2022-09-26T20:48:46.182189Z"}], "thread_id": "Thread-2", "execution_time": 0.0065310001373291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.not_null_stg_quickbooks__vendor_vendor_id.f509a77195"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-09-26T20:48:46.179484Z", "completed_at": "2022-09-26T20:48:46.182105Z"}, {"name": "execute", "started_at": "2022-09-26T20:48:46.182606Z", "completed_at": "2022-09-26T20:48:46.182609Z"}], "thread_id": "Thread-3", "execution_time": 0.0061299800872802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.quickbooks_source.unique_stg_quickbooks__vendor_vendor_id.db565c27ad"}], "elapsed_time": 5.40155816078186, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file diff --git a/integration_tests/.gitignore b/integration_tests/.gitignore index 99de336..4da59f2 100644 --- a/integration_tests/.gitignore +++ b/integration_tests/.gitignore @@ -1,3 +1,4 @@ target/ dbt_modules/ +dbt_packages/ logs/ \ No newline at end of file diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index f524bd8..df22109 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -16,13 +16,13 @@ integration_tests: pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" port: 5439 - schema: + schema: quickbooks_source_integrations_tests threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: + schema: quickbooks_source_integrations_tests threads: 8 keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" snowflake: @@ -42,13 +42,13 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: + schema: quickbooks_source_integrations_tests threads: 8 databricks: catalog: null host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: + schema: quickbooks_source_integrations_tests threads: 2 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" - type: databricks \ No newline at end of file + type: databricks diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 49a104b..72e451d 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,6 @@ name: 'quickbooks_source_integration_tests' version: '0.6.0' + profile: 'integration_tests' config-version: 2 models: @@ -8,47 +9,51 @@ models: tmp: materialized: view vars: + quickbooks_schema: quickbooks_source_integrations_tests quickbooks_source: - using_purchase_order: true - account: "{{ ref('account_data') }}" - address: "{{ ref('address_data') }}" - bill_line: "{{ ref('bill_line_data') }}" - bill_linked_txn: "{{ ref('bill_linked_txn_data') }}" - bill_payment_line: "{{ ref('bill_payment_line_data') }}" - bill_payment: "{{ ref('bill_payment_data') }}" - bill: "{{ ref('bill_data') }}" - bundle_item: "{{ ref('bundle_item_data') }}" - bundle: "{{ ref('bundle_data') }}" - credit_memo: "{{ ref('credit_memo_data') }}" - credit_memo_line: "{{ ref('credit_memo_line_data') }}" - customer: "{{ ref('customer_data') }}" - department: "{{ ref('department_data') }}" - deposit_line: "{{ ref('deposit_line_data') }}" - deposit: "{{ ref('deposit_data') }}" - estimate: "{{ ref('estimate_data') }}" - estimate_line: "{{ ref('estimate_line_data') }}" - invoice: "{{ ref('invoice_data') }}" - invoice_line: "{{ ref('invoice_line_data') }}" - invoice_line_bundle: "{{ ref('invoice_line_bundle_data') }}" - invoice_linked_txn: "{{ ref('invoice_linked_txn_data') }}" - item: "{{ ref('item_data') }}" - journal_entry_line: "{{ ref('journal_entry_line_data') }}" - journal_entry: "{{ ref('journal_entry_data') }}" - payment: "{{ ref('payment_data') }}" - payment_line: "{{ ref('payment_line_data') }}" - purchase_line: "{{ ref('purchase_line_data') }}" - purchase_order: "{{ ref('purchase_order_data') }}" - purchase_order_line: "{{ ref('purchase_order_line_data') }}" - purchase_order_linked_txn: "{{ ref('purchase_order_linked_txn_data') }}" - purchase: "{{ ref('purchase_data') }}" - refund_receipt_line: "{{ ref('refund_receipt_line_data') }}" - refund_receipt: "{{ ref('refund_receipt_data') }}" - sales_receipt_line: "{{ ref('sales_receipt_line_data') }}" - sales_receipt: "{{ ref('sales_receipt_data') }}" - transfer: "{{ ref('transfer_data') }}" - vendor_credit_line: "{{ ref('vendor_credit_line_data') }}" - vendor_credit: "{{ ref('vendor_credit_data') }}" - vendor: "{{ ref('vendor_data') }}" + using_purchase_order: True + using_credit_card_payment_txn: True + account: "{{ ref('account_data') }}" + address: "{{ ref('address_data') }}" + bill_line: "{{ ref('bill_line_data') }}" + bill_linked_txn: "{{ ref('bill_linked_txn_data') }}" + bill_payment_line: "{{ ref('bill_payment_line_data') }}" + bill_payment: "{{ ref('bill_payment_data') }}" + bill: "{{ ref('bill_data') }}" + bundle_item: "{{ ref('bundle_item_data') }}" + bundle: "{{ ref('bundle_data') }}" + credit_card_payment_txn: "{{ ref('credit_card_payment_txn_data') }}" + credit_memo: "{{ ref('credit_memo_data') }}" + credit_memo_line: "{{ ref('credit_memo_line_data') }}" + customer: "{{ ref('customer_data') }}" + department: "{{ ref('department_data') }}" + deposit_line: "{{ ref('deposit_line_data') }}" + deposit: "{{ ref('deposit_data') }}" + estimate: "{{ ref('estimate_data') }}" + estimate_line: "{{ ref('estimate_line_data') }}" + invoice: "{{ ref('invoice_data') }}" + invoice_line: "{{ ref('invoice_line_data') }}" + invoice_line_bundle: "{{ ref('invoice_line_bundle_data') }}" + invoice_linked_txn: "{{ ref('invoice_linked_txn_data') }}" + item: "{{ ref('item_data') }}" + journal_entry_line: "{{ ref('journal_entry_line_data') }}" + journal_entry: "{{ ref('journal_entry_data') }}" + payment: "{{ ref('payment_data') }}" + payment_line: "{{ ref('payment_line_data') }}" + purchase_line: "{{ ref('purchase_line_data') }}" + purchase_order: "{{ ref('purchase_order_data') }}" + purchase_order_line: "{{ ref('purchase_order_line_data') }}" + purchase_order_linked_txn: "{{ ref('purchase_order_linked_txn_data') }}" + purchase: "{{ ref('purchase_data') }}" + refund_receipt_line: "{{ ref('refund_receipt_line_data') }}" + refund_receipt: "{{ ref('refund_receipt_data') }}" + sales_receipt_line: "{{ ref('sales_receipt_line_data') }}" + sales_receipt: "{{ ref('sales_receipt_data') }}" + transfer: "{{ ref('transfer_data') }}" + vendor_credit_line: "{{ ref('vendor_credit_line_data') }}" + vendor_credit: "{{ ref('vendor_credit_data') }}" + vendor: "{{ ref('vendor_data') }}" + seeds: +quote_columns: "{{ true if target.type == 'redshift' else false }}" quickbooks_source_integration_tests: diff --git a/integration_tests/seeds/credit_card_payment_txn_data.csv b/integration_tests/seeds/credit_card_payment_txn_data.csv new file mode 100644 index 0000000..21b347e --- /dev/null +++ b/integration_tests/seeds/credit_card_payment_txn_data.csv @@ -0,0 +1,6 @@ +id,amount,bank_account_id,credit_card_account_id,created_at,updated_at,currency_id,transaction_date,_fivetran_deleted +1111,5,5,7,2022-07-21 09:57:41,2022-07-21 09:57:41,USD,2022-07-21,FALSE +2222,10.02,5,7,2020-05-24 19:39:23,2020-05-24 19:39:23,USD,2020-05-19,FALSE +3333,13.52,5,7,2022-09-06 12:12:07,2022-09-06 12:12:07,USD,2022-09-04,FALSE +4444,65.22,5,7,2022-01-05 22:22:11,2022-01-05 22:22:11,USD,2022-01-04,FALSE +5555,94.1,5,7,2022-07-09 21:15:24,2022-07-09 21:15:24,USD,2022-06-18,FALSE \ No newline at end of file diff --git a/macros/get_credit_card_payment_txn_columns.sql b/macros/get_credit_card_payment_txn_columns.sql new file mode 100644 index 0000000..7f45916 --- /dev/null +++ b/macros/get_credit_card_payment_txn_columns.sql @@ -0,0 +1,20 @@ +{% macro get_credit_card_payment_txn_columns() %} + +{% set columns = [ + {"name": "id", "datatype": dbt_utils.type_string()}, + {"name": "_fivetran_deleted", "datatype": "boolean"}, + {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "amount", "datatype": dbt_utils.type_float()}, + {"name": "bank_account_id", "datatype": dbt_utils.type_string()}, + {"name": "created_at", "datatype": dbt_utils.type_timestamp()}, + {"name": "credit_card_account_id", "datatype": dbt_utils.type_string()}, + {"name": "currency_id", "datatype": dbt_utils.type_string()}, + {"name": "sync_token", "datatype": dbt_utils.type_string()}, + {"name": "transaction_date", "datatype": "date"}, + {"name": "updated_at", "datatype": dbt_utils.type_timestamp()} + +] %} + +{{ return(columns) }} + +{% endmacro %} \ No newline at end of file diff --git a/models/src_quickbooks.yml b/models/src_quickbooks.yml index d148e2f..0f84c1a 100644 --- a/models/src_quickbooks.yml +++ b/models/src_quickbooks.yml @@ -208,6 +208,28 @@ sources: - name: updated_at description: Timestamp of the date when the bundle was last updated. + - name: credit_card_payment_txn + description: Table containing all credit card payment transactions. + columns: + - name: id + description: Unique identifier of the credit card payment transaction. + - name: amount + description: Total amount of money applied to the credit card payment transaction. + - name: bank_account_id + description: Reference to the bank account which the credit card payment is debited towards. + - name: credit_card_account_id + description: Reference to the credit card account which the credit card payment is credited towards. + - name: created_at + description: Timestamp when the credit card payment was created. + - name: updated_at + description: Timestamp when the credit card payment was last updated. + - name: currency_id + description: Reference to the currency used for the credit card payment. + - name: transaction_date + description: Date the credit card payment transaction took place. + - name: _fivetran_deleted + description: Boolean indicating if the credit card payment was deleted. + - name: credit_memo_line description: Table containing individual records of credit memos. columns: diff --git a/models/stg_quickbooks.yml b/models/stg_quickbooks.yml index 65ecfe9..9381ad4 100644 --- a/models/stg_quickbooks.yml +++ b/models/stg_quickbooks.yml @@ -226,6 +226,30 @@ models: - name: updated_at description: Timestamp of the date when the bundle was last updated. + - name: stg_quickbooks__credit_card_payment_txn + description: Table containing all credit card payment transactions. + columns: + - name: credit_card_payment_id + description: Unique identifier of the credit card payment transaction. + - name: amount + description: Total amount of money applied to the credit card payment transaction. + - name: bank_account_id + description: Reference to the bank account which the credit card payment is debited towards. + - name: credit_card_account_id + description: Reference to the credit card account which the credit card payment is credited towards. + - name: created_at + description: Timestamp when the credit card payment was created. + - name: updated_at + description: Timestamp when the credit card payment was last updated. + - name: currency_id + description: Reference to the currency used for the credit card payment. + - name: transaction_date + description: Date the credit card payment transaction took place. + - name: _fivetran_deleted + description: Boolean indicating if the credit card payment was deleted. + - name: is_most_recent_record + description: Boolean indicating if the record is the most recent updated version of the credit card payment transaction. + - name: stg_quickbooks__credit_memo_line description: Table containing individual records of credit memos. columns: diff --git a/models/stg_quickbooks__credit_card_payment_txn.sql b/models/stg_quickbooks__credit_card_payment_txn.sql new file mode 100644 index 0000000..0a17317 --- /dev/null +++ b/models/stg_quickbooks__credit_card_payment_txn.sql @@ -0,0 +1,40 @@ +--To enable this model, set the using_invoice_bundle variable within your dbt_project.yml file to True. +{{ config(enabled=var('using_credit_card_payment_txn', False)) }} + +with base as ( + + select * + from {{ ref('stg_quickbooks__credit_card_payment_txn_tmp') }} +), + +fields as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_quickbooks__credit_card_payment_txn_tmp')), + staging_columns=get_credit_card_payment_txn_columns() + ) + }} + from base +), + +final as ( + + select + cast(id as {{ dbt_utils.type_string() }}) as credit_card_payment_id, + amount, + bank_account_id, + credit_card_account_id, + created_at, + updated_at, + currency_id, + transaction_date, + _fivetran_deleted, + row_number() over (partition by id, updated_at order by updated_at desc) = 1 as is_most_recent_record + from fields +) + +select * +from final +where not coalesce(_fivetran_deleted, false) \ No newline at end of file diff --git a/models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql b/models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql new file mode 100644 index 0000000..10b69b4 --- /dev/null +++ b/models/tmp/stg_quickbooks__credit_card_payment_txn_tmp.sql @@ -0,0 +1,5 @@ +--To enable this model, set the using_credit_card_payment_txn variable within your dbt_project.yml file to True. +{{ config(enabled=var('using_credit_card_payment_txn', False)) }} + +select * +from {{ var('credit_card_payment_txn') }} \ No newline at end of file